Re: Passing Interfaces from COM to Java

Vitaly Shelest <[email protected]>
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <[email protected]>
Read about CreateStdDispatch in MSDN. With this function you can convert C++ class pointer to IDispatch reference (with some restrictions).

Vitaly


-----Original Message-----
From: Maxym Mykhalchuk [mailto:[email protected]]
Sent: Mon, July 05, 2004 11:28 AM
To: [email protected]
Subject: Re: [JAWIN] Passing Interfaces from COM to Java


Hi Vitaly,

--- Cyril <[email protected]> wrote:
> Hi Maxym,
> Why njawin is not incorporated into jawin? This is a
> different story.

That's a pity actually, because with each day of separate development
it's becoming more and more complex to integrate back. Remember
GNU/Emacs vs. XEmacs story?

> In my code I try to use existing technologies and do
> not invent a wheel.

The same with me, actually. One reason that I try to use Java is
that:
1. It's de-facto standard in the SemanticWeb scientific community
2. There's a lot of code developed in Java I'd like to use
3. Writing COM in C++ is pretty boring, because on each line of
useful code I have to add the check of return code and logics what to
do, what to free on different return codes. That's a huge pain!

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 ;-))

Sincere,
Maxym



__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.