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! 13 2221
> 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.
> 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.
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!
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!
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!
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!
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!
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!
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!
> 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. :-)
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
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!
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! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 call an event in managed
Form1.
Initialization...
|
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 Form1::Form1_Load(System::Object * sender,...
|
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
enough. To keep things short I am for the most...
|
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 = PR_RC_StartViewFinder( m_hCamera, //line 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 callback function that the unmanaged C/C++ code...
| |
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.
My Problem is that i have to use a native c++ sdk...
|
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.
My Problem is that i have to use a native c++ sdk...
|
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 unmanaged
code (written by a thrid party). The...
|
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 do I wrap a managed callback in a class derived...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |