调用vc的dll的这个函数出错,如何解决??请教!
vc中函数定义 int Em_GetICExists( unsigned int Hw,unsigned char *existsFlag);
vc中调用例程:
int rv;
unsigned int DEVICETYPE
unsigned char ICExistsFlag;
....
rv = Em_GetICExists(DEVICETYPE,(unsigned char *)&ICExistsFlag)
....
我在pb中调用:
FUNCTION int Em_GetICExists( uint Hw, ref string existsFlag) LIBRARY "ic_lib.dll"
脚本:
int rv
string vsIcExt
rv = Em_GetICExists(3, ref vsIcExt)
错误提示如下:
---------------------------
PowerBuilder Application Execution Error (R0042)
---------------------------
Application terminated.
Error: Specified argument type differs from required argument type at runtime in DLL function daic_geticexists.
(invalid stack pointer on return from function call) at line 4 in clicked event of object cb_1 of w_da_test.
---------------------------
请问高手如何解决???