在VB中调用一个C语言的DLL:调试时出现如题所说错误,但生成EXE却可以执行并不出错,请问是何原因?Private Declare Function OnReset Lib "D:\v2\Card_Dll.dll" (ByVal com As String) As Long
Public Function OnReset_Card(ByVal com As String) As Long
    OnReset_Card = OnReset("com1")
End FunctionPrivate Sub Command1_Click()
    MsgBox OnReset_Card("COM1")
End Sub关于这个DLL中的函数,文档是这样说的:
函数名:BOOL OnReset(char com[]);
功能:对磁卡机进行硬复位;
返回类型:True--成功,False--失败;
参数说明:com[ ]--串口号,字符串方式,如:”com1”;
备注:无;