我设法加载了两个dll
System.load("C:\\Program Files (x86)\\EXAMPLE Client\\Bin\\EXAMPLE.Client.SDK.dll");
System.load("C:\\Program Files (x86)\\EXAMPLE Client\\Bin\\EXAMPLE.Common.SDK.dll");
下一步是创建对象调用SDKModel
。我该怎么做呢?我试过了:
ActiveXComponent example = new ActiveXComponent("EXAMPLE.Common.SDK.SDKModel");
但后来我得到以下异常:
Exception in thread "main" com.jacob.com.ComFailException: Can't get object clsid from progid
我不确定我是否走在正确的轨道上。将如何创建对象SDKModel
?