Re: Passing Interfaces from COM to Java
Cyril <[email protected]>
| Newsgroups | gmane.comp.windows.devel.jawin |
|---|---|
| Message-ID | <001401c461fc$0675c1d0$0101c80a@home1kvb86k4sm> |
Hi Maxym, Why njawin is not incorporated into jawin? This is a different story. In some days I will finish the code, which supports custom interfaces (derived from IUnknown and compatible with oleautomation). In my code I try to use existing technologies and do not invent a wheel. Now njawin is something different than jawin. Much code gotten from jawin is useless now. The other code I rewrote. While developing Java COM wrapper generator I have learnt much about COM internals. For example, when I wrote the code that supports event handling I had faced with a problem. You know that any method in dispatched interface can be called with named parameters. It means that the parameters in method call can have any order. But in Java Wrapper I have an order predefined. For this case I added the code, which makes parameters in Java Wrapper's order and while returning them back njawin restores original parameter order. I spent much time for making njawin friendly in use by Java Developer. Many COM specific features are hidden. BTW, in my package you will find an example for MS IE. Some guys wrote complex applications with MS IE, where they implemented key-mouse event handling on HTML Document. If you interesting in embedding MS IE in java application write to Guillaume Malignon ([email protected]). He made very cool application with MS IE. Regards, Vitaly Shelest, DSc. P.S. I was born in Kiev and live in Israel. Any questions send to my office: [email protected]