impossible retrive out parameter
Giuseppe MAsotina <[email protected]> Fri, 3 Feb 2006 10:29:38 -0500
| Newsgroups | gmane.comp.windows.devel.jawin |
|---|---|
| Message-ID | <LISTSERV%[email protected]> |
Hi there
Sorry for my English...Im Italian
I try to use jawin to call a com interface method as follow.
The definition method are:
1) GoPublish
scriptlist As String,
targeturl As String,
logfilename As String,
editpassword As String,
options As String,
out_handle As Variant (it's int 32 bit!)
and the out parameter out_handle must be a in parameter for the second
method:
2) CheckPublish
handle As Variant,
out_numberofscripts As Variant,
out_currentscriptnum As Variant,
out_currentscriptname As Variant,
out_scriptpercentdone As Variant,
out_overallpercentdone As Variant,
out_completedscripts As Variant,
out_failedscripts As Variant,
out_allerrors As Variant
Now I try as follow in jawin:
...
Ole32.CoInitialize();
DispatchPtr pub=new Dispatch("Scala.Publisher");
Variant.ByrefHolder outHandleRef = new Variant.ByrefHolder(new Integer(0));
Object[] parameter={"scriptlist" , "targetturl" , .. , outHandleRef };
pub.invokeN("GoPublish" , parameter);
Thread.sleep(5000);
System.out.println(outHandleRef.getRef() );
...
but dont'work!
GoPublish start but outHandleRef.getRef don't change:it's always zero.
After i have to call the second method but i don't understand if i have to
define an array Variant.ByrefHolder[].
I'm newer in jawin and i think that any error in my script.
Any solution is great for me!
Thank's in advance.
Giuseppe