QTP调用dll中函数,函数有个参数是char*, 是用来传出值的,请问解决
QTP调用dll中函数,函数有个参数是char*, 是用来传出值的,请问解决a.cpp
extern "C" _declspec(dllexport)int Test(char *inout)
{
strcpy(inout,"这个字符串要传出去");
return 1;
}
VBS:
Extern.Declare micLong , "Test", environment("TestDir")&"\Test.dll", "Test", micString, micString
vResult = Extern.Test( vOutMsg)
msgbox vOutMsg
以上的调用方式不行,请问怎么解决呢 Extern.Declare micLong , "Test", environment("TestDir")&"\Test.dll", "Test", micString, micString
请问:调用DLL处理上述用环境变量的方法,还有哪些方法?
页:
[1]