944,181 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Unsolved
  • Views: 9086
  • C# RSS
Sep 6th, 2007
0

how to call C# method in C++

Expand Post »
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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
m_meena is offline Offline
16 posts
since Jul 2007
Sep 6th, 2007
0

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.
Reputation Points: 180
Solved Threads: 34
Posting Whiz
Hamrick is offline Offline
322 posts
since Jun 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: How to update a database?
Next Thread in C# Forum Timeline: Format single Row in datagridview using a value in same row





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC