关于VB调用C写的DLL库函数
给出了C里面的函数定义
库名称为softpos.dll
int CreditTrans( char *strin, char *strout )或
int CreditTransABC( char *strin, char *strout )
strin为传入参数,请求;
strout为传出参数,回应。
这个在VB里面应该怎么声明和调用
[解决办法]
Public Declare Function CreditTrans Lib "softpos.dll" (ByRef strin As Byte, ByRef strout As Byte) As Long
Dim strin(255) As Byte, strout(255) As Byte, Ret As Long
......
Ret = CreditTrans(strin(0), strout(0))