VB调用外部DLL函数
DLL中函数的参数类型为CHAR * 问应该怎样实现原函数
int findEqm(char *IP, BOOL Flag)
试过
Private Declare Function findEqm Lib "***.dll " (ByVal IP As String, Flag As Boolean) As Long
或者
Private Declare Function findEqm Lib "***.dll " (ByVal IP As Long, Flag As Boolean) As Long
用
下列形式调用也不行
Dim strIP As String
Dim IsFind As Boolean
Dim y As String * 8
IsFind = True
'Debug.Print findEqm(strIP, IsFind)
strIP = vbNullString
Debug.Print findEqm(StrPtr(strIP), IsFind)