Mixing managed/unmanaged C++ callback

D

DD

I'm puzzled how to mix managed/unmanaged C++ in the following scenario:

Unmanaged
------------
Callback listener class with method that should call an event in managed
Form1.
Initialization code for the listener that launches the listener thread.

Managed
----------
Windows form application with a custom event handler.

I believe this can be broken down into three parts:

1) How to call the managed code event in Form1 from unmanaged C++.
2) How to access Form1 (since it is an instance of a Form).
3) How to initialize the unmanaged callback listener from within Form1.

Thanks!
 
O

Olaf Baeyens

I'm puzzled how to mix managed/unmanaged C++ in the following scenario:I am also wondering how to do this.
I tried this a few years ago but so far I have never been able to make it
work.
I cannot imagine that it is not somehow thought through by Microsoft.
 
G

Guest

I could send you a VS.NET solution containing projects that demonstrate this,
using C# and C++.
Let me know if you are interested.

-Clift Norris
 
S

Sam Carleton

I could send you a VS.NET solution containing projects that demonstrate this,
using C# and C++.
Let me know if you are interested.

-Clift Norris

Personally I would LOVE to see some samples of this. Would you
mind emailing them to me? My email is:

account: scarleton
At the domain of: miltonstreet.com

Thanks!
 
O

Olaf Baeyens

I could send you a VS.NET solution containing projects that demonstrate
this,
using C# and C++.
Let me know if you are interested.

-Clift Norris
Oops I have not been online for some time, I am still interested in samples
for this.
You could email this to this email address. Many thanks. :)
 
G

ghgdh

Clift said:
*I could send you a VS.NET solution containing projects tha
demonstrate this,
using C# and C++.
Let me know if you are interested.

-Clift Norris
[/vbcol] *

I would also be very interested in this :)

(e-mail address removed)


-
ghgd
 
G

Guest

Hi

I'd also be very interested in seeing the sample project.
My email is: (e-mail address removed)

Thanks!
 
G

Guest

OK, it is "in the mail"!
Have fun.
-Clift


Steve said:
Hi

I'd also be very interested in seeing the sample project.
My email is: (e-mail address removed)

Thanks!
 

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