문제

I'm trying to pass java.lang.long variable to com.jacob.activeX.ActiveXComponent.invoke but I get below exception:

com.jacob.com.ComFailException: A COM exception has been encountered:
At Invoke of: SomeMethod
Description: 8002000a / Out of present range.
    at com.jacob.com.Dispatch.invokev(Native Method)
    at com.jacob.com.Dispatch.invokev(Dispatch.java:625)
    at com.jacob.com.Dispatch.callN(Dispatch.java:453)
    at com.jacob.activeX.ActiveXComponent.invoke(ActiveXComponent.java:476)

SomeMethod in COM Object is accepting long type. Could anybody help me with this issue? Thank you in advance.

도움이 되었습니까?

해결책

The COM long type is 32 bits. Use the JAVA int type.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top