由于C++中的DLL里的函数参数包含有的一些数据是VB里没有的,有RECT参数,pBitInfoHead指针和DecodeInfo指针, 请问怎么在VB中声明调用的函数
解决方案 »
- 老实说 ScaleWidth 和 Width 我还是不怎么理解
- 为什么Range("A2:B1000").Select会无效?
- VB大问题?这种异常竟然无法捕获处理!?
- 请问需要将VB中引用的什么DLL拷贝到这台机器上?
- 用vb程序打开另一个可执行程序(如word文件),直到关闭文件后再继续执行下去?给100分,急~~~~
- 会使用ACTIVE REPORT的请进!
- 大家讨论一下EtCell报表控件/插件的功能,来者有分!
- vb 的winsock控件如何实现一对多的连接
- 求助高手vb文本框中横线的问题
- 还是个Winsock的问题,我都问烦了,:(
- 关于VB连接access2003问题,请问该如何修改如下代码
- 如何用VB改变ACCESS中表的列宽
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type
Public Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End TypeType DecodeInfo
full As Long
ret As RECT
codetxt As Long
len As Long
kind As Long
way As Long
reliability As Long
DecodeInfo As Long
End TypePublic Declare Function codeBar Lib "BarDll.dll" Alias "_codeBar@36" (ByVal pBitInfoHead As Long, ret As Any, ByVal gray As Long, ByVal EXT As Long, ByVal way As Long, ByVal barType As Long) As Long
定义:
Dim ret As RECT
Dim m_DecodeInfo As DecodeInfo调用:
lTag = codeBar(ImagePtr, ret, 150, m_39, 15, 1) 150, m_39, 15, 1)-----运行时出现约定错误,错误代码为49
CopyMemory ByVal VarPtr(m_DecodeInfo), ByVal lTag, Len(m_DecodeInfo)