开发者

How to call an ActiveX method through java when control doesn't allow automation (com4j/jacob)?

开发者 https://www.devze.com 2023-03-08 12:54 出处:网络
I have to integrate to an ActiveX control that doesn\'t allow for automation (no IsInvokeAllowed implemented to return true) through Java.

I have to integrate to an ActiveX control that doesn't allow for automation (no IsInvokeAllowed implemented to return true) through Java.

Up to now, the best java libraries for COM integration in my research are com4j and jacob.

When trying to invoke a method on a control that doesn't allow for automation, I get a Catastrophic Failure exception while calling methods on controls that allow automation just work.

Is there a way to call methods on ActiveX objects that doesn't al开发者_开发问答low for automation with Java (through com4j/jacob/other)?

Unfortunately getting the ActiveX object vendor to enable automation on their control is not an option.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号