以下这个DLL库在VB中如何定义啊,试了好多种方法都不对
int WINAPI PSUpChar(int nAddr,int iBufferID, unsigned char* pTemplet, int* iTempletLength)
[解决办法]
你的定义是什么?
[解决办法]
int WINAPI PSUpChar(int nAddr,int iBufferID, unsigned char* pTemplet, int* iTempletLength
==>
public Declare Function PSUpChar Lib "xxx.dll" (ByVal nAddr As long, Byval iBufferID As long, byval pTemplet As string,iTempLetLength as long) As long
[解决办法]
Dim a As String
a = Space(512) '<-凭经验,字符串应该由调用者分配空间
bb = PSUpChar(&HFFFFFFFF, 0, a, 512)