472,328 Members | 1,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,328 software developers and data experts.

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 2111
> 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: DD | last post by:
I'm puzzled how to mix managed/unmanaged C++ in the following scenario: Unmanaged ------------ Callback listener class with method that should...
1
by: H.B. | last post by:
Hi, I need to make a function that can display data on my Managed C++ app and be called by an unmanaged C++ DLL. Something like : void...
5
by: Maxwell | last post by:
Hello, Newbie question here. I have a VS.NET 2003 MC++ (not C++/cli) project where I have a managed class reference in a unmanaged class...simple...
7
by: harishashim | last post by:
I am wrapping a digital camera API using Managed C++ VS .NET 2003). I have this function that called as bellow in the API sample. err =...
1
by: stillh2os | last post by:
Hello. I'm new to .NET, and I'm trying to implement a callback function. I want my managed C++ code to call an unmanaged function, passing in a...
0
by: DavidT | last post by:
Hello, at first, exuse if the following question is simple to solve, but i normaly coding with C# and now have to use C++/CLI for one project. ...
8
by: DavidT | last post by:
Hello, at first, exuse if the following question is simple to solve, but i normaly coding with C# and now have to use C++/CLI for one project. ...
9
by: =?Utf-8?B?RWR3YXJkUw==?= | last post by:
I would greatly appreciate some help on passing managed object into unmanaged code. I need to pass a reference (address of) of a managed class into...
1
by: Kenneth Porter | last post by:
I have an unmanaged library that can accept an instance of an abstract class and call back into it. I'm writing a wrapper for this library. How...
0
by: tammygombez | last post by:
Hey fellow JavaFX developers, I'm currently working on a project that involves using a ComboBox in JavaFX, and I've run into a bit of an issue....
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
1
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.