ComSourceInterfaces in C++ .NET

D

Daniel Wilson

We are writing a C++ .NET server that needs to raise events to its VB6
client. We have found the MSDN article that explains raising these events in
C# or VB.NET --
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconraisingeventshandledbycomsink.asp

How do we translate the source to C++? Everything we try fails.

The problem is that C++ requires that we instantiate the class, in this case
the delegate, before calling a method on it. The constructor for the
delegate requires a pointer to the object handling the events -- which is
the VB client.

What am I missing? How is this done?

Thanks.
Daniel Wilson
Application Developer, http://www.Embtrak.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top