473,472 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Registering for .NET events in MFC C++ (How)

Folks,

I have a C# .NET Assembly that is called from an MFC C++ application. The
assembly is marked as COM visible so I'm accessing the assembly from MFC C++
via COM. Everything works great but here is my question:

I need to create an event in the .NET Assembly and have the MFC C++
application register for this event and handle the event.

Can anyone provide an example or a link for doing this? Any help would be
appreciated.

Thanks in advance,
--
Anthony Yott
Nov 18 '05 #1
1 1562
See if the following links help you.
http://spaces.msn.com/members/OnegaZhang/PersonalSpace.aspx?_c11_BlogPart_handle=cns!1pm6Y0 BJ9PK0F7ZoxyQYJ3lA!108&_c11_BlogPart_blogpart=blog entry&_c11_BlogPart_frompart=myspace&_c=BlogPart&_ c02_owner=1
"Anthony Yott" <an*********@hotmail.com> wrote in message
news:8A**********************************@microsof t.com...
Folks,

I have a C# .NET Assembly that is called from an MFC C++ application. The
assembly is marked as COM visible so I'm accessing the assembly from MFC
C++
via COM. Everything works great but here is my question:

I need to create an event in the .NET Assembly and have the MFC C++
application register for this event and handle the event.

Can anyone provide an example or a link for doing this? Any help would be
appreciated.

Thanks in advance,
--
Anthony Yott

Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: ian | last post by:
Hi All I have a DLL (nahd.dll) that has been supplied to me will a PBX phone system. According to the documentation it is to allow developers to write there own applications to monitor the...
2
by: Helen | last post by:
I've got some clientside script that runs when the selected index of a select box changes. Now I need to swap my selectbox with an ASP.NET radiobuttonlist (to solve some layout issues). I still...
0
by: shivkumar2004 | last post by:
Hi, I m getting the following error while registering the events on client appl. error: "An error occurred creating the form. See Exception.InnerException for details. The error is: Exception...
31
by: Scott M. | last post by:
Am I correct in thinking that because C# doesn't have the "Handles" keyword that VB .NET does, we have to register event delegates manually in C#, whereas in VB .NET using "Handles" takes care of...
0
by: Tim Spens | last post by:
--- On Fri, 6/27/08, Tim Spens <t_spens@yahoo.comwrote: I think I know where the problem is but I'm unsure how to fix it. When I call Register_Handler(...) from python via...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...
1
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...
0
agi2029
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,...
1
isladogs
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 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.