how to call C# method in C++

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Jul 2007
Posts: 16
Reputation: m_meena is an unknown quantity at this point 
Solved Threads: 0
m_meena m_meena is offline Offline
Newbie Poster

how to call C# method in C++

 
0
  #1
Sep 6th, 2007
Hi,

I have two exes, one is in C# and other in C++.
The C++ exe is a windows service. i want to notify my C# executable with events occuring in the windows service.
How can i call a c# code frm C++. The application is a simple form based application, i want to display a message box or just to change the caption of the form when some event in the service occurs.


dont know where to post this -- in C# or in C++. so posted my question in both.

Thanks in advance,
Meena
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 322
Reputation: Hamrick will become famous soon enough Hamrick will become famous soon enough 
Solved Threads: 33
Hamrick's Avatar
Hamrick Hamrick is offline Offline
Posting Whiz

Re: how to call C# method in C++

 
0
  #2
Sep 6th, 2007
If the C++ program is C++/CLI, you can add the C# dll as a reference in the C++ project and use it normally. If it's native C++, it's a little harder.
The truth does not change according to our ability to stomach it.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC