469,964 Members | 1,503 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,964 developers. It's quick & easy.

Mixing managed/unmanaged C++ callback

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!
Nov 17 '05 #1
13 1997
> 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.
Nov 17 '05 #2
> 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.
Nov 17 '05 #3
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
"DD" wrote:
I'm puzzled how to mix managed/unmanaged C++ in the following scenario:
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!

Nov 17 '05 #4
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
"DD" wrote:
I'm puzzled how to mix managed/unmanaged C++ in the following scenario:
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!

Nov 17 '05 #5
On 2005-07-11, Clift Norris wrote:
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!

"DD" wrote:
I'm puzzled how to mix managed/unmanaged C++ in the following scenario:
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!

Nov 17 '05 #6
On 2005-07-11, Clift Norris wrote:
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!

"DD" wrote:
I'm puzzled how to mix managed/unmanaged C++ in the following scenario:
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!

Nov 17 '05 #7
Ok, it is "in the email". I sent a zipped VS.NET solution.
-Clift
"Sam Carleton" wrote:
On 2005-07-11, Clift Norris wrote:
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!

"DD" wrote:
I'm puzzled how to mix managed/unmanaged C++ in the following scenario:
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!

Nov 17 '05 #8
Ok, it is "in the email". I sent a zipped VS.NET solution.
-Clift
"Sam Carleton" wrote:
On 2005-07-11, Clift Norris wrote:
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!

"DD" wrote:
I'm puzzled how to mix managed/unmanaged C++ in the following scenario:
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!

Nov 17 '05 #9
DD
Clift, it would be great if I could also receive the sample project. My
email is listed on this page, (click on the link for Dan K.)
http://www.autonvs.com/teamcontacts.html

"Clift Norris" <Cl*********@discussions.microsoft.com> wrote in message
news:CC**********************************@microsof t.com...
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
"DD" wrote:
I'm puzzled how to mix managed/unmanaged C++ in the following scenario:
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!

Nov 17 '05 #10
> 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. :-)
Nov 17 '05 #11

Clift Norris wrote:
*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 :)

es*****@gmail.co
-
ghgd
-----------------------------------------------------------------------
Posted via http://www.mcse.m
-----------------------------------------------------------------------
View this thread: http://www.mcse.ms/message1722466.htm

Nov 17 '05 #12
Hi

I'd also be very interested in seeing the sample project.
My email is: mo********@hotmail.com

Thanks!

"Clift Norris" wrote:
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
"DD" wrote:
I'm puzzled how to mix managed/unmanaged C++ in the following scenario:
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!

Nov 17 '05 #13
OK, it is "in the mail"!
Have fun.
-Clift
"Steve" wrote:
Hi

I'd also be very interested in seeing the sample project.
My email is: mo********@hotmail.com

Thanks!

"Clift Norris" wrote:
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
"DD" wrote:
I'm puzzled how to mix managed/unmanaged C++ in the following scenario:
> 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!

Nov 17 '05 #14

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by =?Utf-8?B?RWR3YXJkUw==?= | last post: by
1 post views Thread by Kenneth Porter | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.