67,513
社区成员
发帖
与我相关
我的任务
分享
ActiveXComponent dotnetCom = new ActiveXComponent("RisInterface.Electric");
Dispatch dt = dotnetCom.getObject();
String[][] orderResult=null;
//输出值
Variant orderInfo = new Variant(orderResult,true);
//调用C++方法,返回信息,但是orderInfo是空的!!!!!!!!!!!!
Variant test1Rt1 = Dispatch.call(dt, "RetrievePatInfo",new Variant(0),new Variant(0),"",orderInfo);
System.out.println(test1Rt1);//返回值是正常的