DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C# (http://www.daniweb.com/forums/forum61.html)
-   -   how to call C# method in C++ (http://www.daniweb.com/forums/thread88733.html)

m_meena Sep 6th, 2007 1:33 am
how to call C# method in C++
 
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

Hamrick Sep 6th, 2007 9:31 am
Re: how to call C# method in C++
 
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.


All times are GMT -4. The time now is 6:58 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC