User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 456,595 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,443 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser: Programming Forums
Views: 2431 | Replies: 1
Reply
Join Date: Jul 2007
Posts: 16
Reputation: m_meena is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
m_meena m_meena is offline Offline
Newbie Poster

Question how to call C# method in C++

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jun 2007
Posts: 321
Reputation: Hamrick will become famous soon enough Hamrick will become famous soon enough 
Rep Power: 3
Solved Threads: 33
Hamrick's Avatar
Hamrick Hamrick is offline Offline
Posting Whiz

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

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb C# Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the C# Forum

All times are GMT -4. The time now is 6:53 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC