vb连接mysql出现的问题_连接数据库问题用户定义类型未定义【vb6】

这篇博客主要讲述了在VB6中使用ADODB连接MySQL数据库时遇到的‘用户定义类型未定义’错误。作者提供了数据库存图的源代码,并展示了如何处理和保存图片到数据库中。在代码执行过程中,用户在尝试将一些代码片段粘贴到项目中时遇到了问题。
摘要由CSDN通过智能技术生成

连接数据库问题用户定义类型未定义【vb6】0

Dim cnnImage As NewADODB.Connection

Dim rsImage As New ADODB.Recordset

Dim strSql As String

Dim Chunk() As Byte

Dim lngLengh As Long

Dim intChunks As Integer

Dim intFragment As Integer

Const ChunkSize = 1000

Const lngDataFile = 1为什么这样会提示用户定义类型未定义‘-----------------------------------------------------------这是数据库存图的源代码,网上找来的能运行

Dim cnnImage As New ADODB.Connection

Dim rsImage As New ADODB.Recordset

Dim strSql As StringDim Chunk() As Byte

Dim lngLengh As Long

Dim intChunks As Integer

Dim intFragment As Integer

Const ChunkSize = 1000

Const lngDataFile = 1

Private Sub cmdBrowse_Click()

'选择 JPG OR Bmp 文件

On Error Resume Next

With cmdlFilePath

.Filter = "JPG Files|*.JPG|Bitmaps|*.BMP|gif Files|*.gif"

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值