_DslpaxImpl dslpax = ...; try { dslpax.initialize(); } catch (AutomationException e) { String description = e.getExceptionInformation().getBstrDescription(); System.err.println("Error description: " + description); }
--
You received this message because you are subscribed to the Google Groups "JNIWrapper Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jniwrapper-for...@teamdev.com.
To post to this group, send email to jniwrapp...@teamdev.com.
Visit this group at http://groups.google.com/a/teamdev.com/group/jniwrapper-forum/.
For more options, visit https://groups.google.com/a/teamdev.com/d/optout.
We are passing logFileName and eventId as parameters from Java. These are used for logging in C++ code.
if we don't pass any parameters, it goes through.
when Comfyj 2.10 was used
there is no error irrespective of passing or not passing parameters to Automation.invokeDispatch() method
I found the following differences for invokeDispatch() method in Comfyj 2.11 v/s 2.10 in documentation-
-----------------------------------------------------
Comfyj 2.11 - http://www.teamdev.com/downloads/comfyj/javadoc/com/jniwrapper/win32/automation/Automation.html#invokeDispatch(com.jniwrapper.win32.automation.IDispatch, com.jniwrapper.win32.automation.types.DispID, com.jniwrapper.win32.automation.types.DispParams)
invokeDispatch
public static java.lang.Object invokeDispatch(IDispatch dispatch,java.lang.String methodName,Parameter[] args,java.lang.Class returnValueClass)
Invokes the method through dispatch interface reference.
Parameters:
dispatch -
dispatch interface reference
methodName - dispid
of the invoked method
args - array of arguments
returnValueClass - return value type
Returns:
result of method invocation
Throws:
ComException - when the method invocation is failed
--------------------------------------------------------------------
Comfyj 2.10 - http://static1.teamdev.com/downloads/comfyj/javadoc/com/jniwrapper/win32/automation/Automation.html#invokeDispatch(com.jniwrapper.win32.automation.IDispatch, com.jniwrapper.win32.automation.types.DispID, com.jniwrapper.win32.automation.types.DispParams)
invokeDispatch
public static java.lang.Object invokeDispatch(IDispatch dispatch,java.lang.String methodName,Parameter[] args,java.lang.Class returnValueClass)
Invokes the method through dispatch interface reference.
Parameters:
dispatch -
dispatch interface reference
methodName - dispid
of the invoked method
args -
Returns:
result of method invocation
Throws:
ComException - when the method invocation is failed
--------------------------------------------------------------------------
Not sure whether documentation for 2.10 is incomplete. May be implementation is changed in 2.11.
Any thoughts on this?
thanks for the support.
Rudresh