Delphi函数定义转为VB
有一个dll的调用,函数原型已经无从考证了,但是使用Delphi调用确定是没有问题的。现在想转为VB,但无法成功,请各位大神赐教!
Delphi定义:
Function pwdDted(password: Pchar; path: Pchar): Integer;STDCALL;external ‘ABDll.dll’;
我转为VB之后是这样的:
Declare Function pwdDtedLib "ABDll.dll" (ByVal PassWord As String, ByVal Path As String) As Long
函数能正常调用,但是返回结果却不对,是不是类型错误呢?