大家帮帮我,一个关于dll调用的参数问题
有一个用vc编的dll,里面有这样的一个函数及说明!
函数名:CNGPSendSingle()
参数名 数据类型
nMsgType Int
sServiceID Char(11)
SINIFile const char *
我用vb调用它,我的声明如下:
Declare Function CNGPSendSingle Lib "smgwapi.dll" (Byval nMsgType As integer, sServiceID as string, SINIFile as any) As Integer
调用:
dim aaa as integer
aaa=CNGPSendSingle(1,"1111","222222")
错了!!我不太清那出了问题。请高手帮忙啊!!!应如何声明?如何引用??