如何调用DLL中的CHAR
vc++原形如下(其中:version返回的版本信息):
int GetDeviceVersion ( int device , int devicegroup , char * version , int * len ) ;
在vb中,是:
Public Declare Function GetDeviceVersion Lib "ND80Driver.dll" Alias "_GetDeviceVersion@16" (ByVal device As Integer, ByVal devicegroup As Integer, Byref version As byte, ByRef len1 As Integer) As Integer
还是:
Public Declare Function GetDeviceVersion Lib "ND80Driver.dll" Alias "_GetDeviceVersion@16" (ByVal device As Integer, ByVal devicegroup As Integer, ByRef version As String, ByRef len1 As Integer) As Integer
或还是其它,请问他们又怎么调用呢?