该DLL文件中函数声明如下:
Public Declare Sub FECOM_GetDLLVersion Lib "FECOM.DLL" (ByVal cVersion As String)该函数功能是返回DLL文件版本,结果放置在参数cVersion中。这种方法在C里好象没什么问题,但在VB里调试却不成功了。
The function returns the version number of the DLL.
cVersion is an empty, null-terminated string for returning the version number. The
string should be able to hold at least 256 characters.请高手帮忙看一下,谢谢!
Public Declare Sub FECOM_GetDLLVersion Lib "FECOM.DLL" (ByVal cVersion As String)该函数功能是返回DLL文件版本,结果放置在参数cVersion中。这种方法在C里好象没什么问题,但在VB里调试却不成功了。
The function returns the version number of the DLL.
cVersion is an empty, null-terminated string for returning the version number. The
string should be able to hold at least 256 characters.请高手帮忙看一下,谢谢!
如何取得exe,dll文件的版本号,请参见: http://topic.csdn.net/t/20020208/10/525126.html
version = string(128, chr(0))
FECOM_GetDLLVersion version
或者
FECOM_GetDLLVersion byval version試試看