81,091
社区成员
发帖
与我相关
我的任务
分享
import com.jacob.activeX.ActiveXComponent;
import com.jacob.com.*;
public class CallDll {
public static void main(String args[]) {
ActiveXComponent app = new ActiveXComponent("OUR_MIFARE");
Dispatch ds = (Dispatch) app.getObject();
if(ds!=null){
//Variant result = Dispatch.callN(ds, "pcdbeep", new String[]{"20"});
Variant result = Dispatch.call(ds, "pcdbeep", new Variant("20"));
System.out.print(result);
}
}
}