关于java中使用jacob调用c++写的ocx时参数传递的问题
我用c++写了一个简单的ocx写了3个方法
TestFunc()
TestFunc3(SHORT port)
TestFunc2(SHORT port,CHAR* strIP)
在java中这么调用
ActiveXComponent comx = new ActiveXComponent("ACEWEB.ACEWebCtrl.1");
Dispatch disp = comx.getObject();
Dispatch.call(disp,"TestFunc");
Dispatch.call(disp, "TestFunc3", 8891);
Dispatch.call(disp,"TestFunc2",8891,"192.168.9.79");
结果TestFunc和TestFunc3都是成功的,TestFunc2调用失败,我觉得是这个字符串参数传递的问题,请问大牛该如何解决?在线等~急