调用vc写的dll时出错,错误描述是:“Bad DLL calling convention”
调用vc写的dll的某个方法时出错,错误描述是:“Bad DLL calling convention”
vc中方法名为:
void TV_OffHookCtrl (int iChannel,BOOL bStateSign=TRUE);
vb中声明为:
Private Declare Sub OffHookCtrl Lib "usbid.dll" Alias "TV_OffHookCtrl" (iChannel As Long)’
调用:
OffHookCtrl 1
各位高手,帮我看看问题出在哪里