Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello guys,

Can anyone please tell me how can i send a message from my C#/VB.Net windows based application to another C++ based application?

Please help me out.
shafiq
Posted
Updated 1-Jun-10 23:52pm
v2
Comments
PSK_ 2-Jun-10 6:01am    
Can you explain in detail what type of messages you want to send?

What you want to google is "C# interprocess communications". There are several ways to accomplish this (remoting, WCF, TCP/IP lister, and there's even a message called WM_BROADCAST (or something like that).

Which method you choose is based on the program's intended use and the topology on which it is used.
 
Share this answer
 
IPC (Inter process communication) is the best way to communicate between your two exe files. Try to search with Inter process communication and you will get number of read to use examples to get your solution.

VB.NET, VB6 and C# Interprocess communication via Window Messaging[^]
 
Share this answer
 
depending on your setup you can use WCF or even message queues. look at sql message queues they are light and work across many things. Also are your two applications on the same computer?
 
Share this answer
 
It really depends on what you're trying to achieve. One way to do this would be to implement the C++ application as a COM Server, and interact with it through COM Interop. Another mechanism would be to open up a TCP channel in the C++ application, and control it via that.
 
Share this answer
 
Hello guys..
Thanks for answering my question.
I have done this through marshaling.
 
Share this answer
 
Comments
Ankur\m/ 21-Jun-10 3:26am    
No one would realize that you have thanked them. Use "Add Comment" feature to reply to a user.
Toli Cuturicu 21-Jun-10 4:45am    
Reason for my vote of 1
fake

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900