|
Re: OleAutomation wrapper code generator [message #461331 is a reply to message #461329] |
Tue, 20 September 2005 21:36 |
Eclipse User |
|
|
|
Originally posted by: omry_y.inter.net.il
I pretty much asked the same question a few days ago.
no response yet.
if you managed to get things working with OLE, I would appriciate it if
you will take a look at at my past question about OLE and
Word.Application.Documents.Open file
thanks.
Chris Morris wrote:
> Was wondering if there were any code gen tools out there to help wrap an
> ActiveX control with the OleAutomation class. Seems it'd be possible to
> query the interface of the ActiveX and code gen Java code to help
> automate methods like this one:
>
> 6 public void loadFile(String file)
> 7 {
> 8 showPdfControl();
> 9
> 10 int[] rgdispid = auto.getIDsOfNames(newString[]{"LoadFile"});
> 11 int dispIdMember = rgdispid[0];
> 12
> 13 Variant[] rgvarg = new Variant[1];
> 14 rgvarg[0] = new Variant(file);
> 15
> 16 Variant pVarResult =auto.invoke(dispIdMember,rgvarg);
> 17 }
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02901 seconds