Re: Passing Interfaces from COM to Java
Maxym Mykhalchuk <[email protected]>
| Newsgroups | gmane.comp.windows.devel.jawin |
|---|---|
| Message-ID | <[email protected]> |
Hi Vitaly, > Read about CreateStdDispatch in MSDN. With this function you can > convert C++ class pointer to IDispatch reference (with some > restrictions). Thanks a lot, MSDN even has the sample code, so it's a fairly easy task then. However, CreateStdDispatch says that it's about creating IDispatch from IUnknown, while IWebBrowser2 is already an IDispatch, but that doesn't matter I suppose. But what then? I mean the second part of my question - the Java code... Suppose I get this reference, what Java code can create IWebBrowser2 interface out of it? Any sample anywhere? Maxym > Still you didn't answer my question: > What C++ code to write, and what Java code to write to pass a > reference to IDispatch-compatible interface from C++ code to Java > code? > > NJawin is nice, but it doesn't make me any closer to my task than > Jawin ;-(( or at least I'm too stupid to understand how ;-)) __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail