How can I send commands to an .exe from another .exe en c++?

Go To StackoverFlow.com

0

Basicly, I want to write a C++ program and with it, pass messages to a program .exe. This program .exe will run in background and it is going to receive commands from my c++ program. Please, if someone knows a way to do it, that would be awesome.

2012-04-04 08:35
by imrodriguezro
as Lunar said - for e.g. on Win you could use SendMessage or PostMessag - Sachin 2012-04-04 08:39
THere are lots of ways to do that, from windows message, easy but can't say much to a full on TCP/IP link. Waht sort of things do they need to comunicate about - Tony Hopkinson 2012-04-04 08:42
I need to send commands to an .exe that I cannot modify - imrodriguezro 2012-04-06 07:32


0

Use any IPC supported by your OS.

2012-04-04 08:39
by Lunar Mushrooms


0

I,m not able to give you a precise answer since I've never worked on windows, but I think what you are looking for is IPC or "Interprocess communication".

2012-04-04 08:42
by Michael Z.
Well, the thing is that I cannot modify the client program. I only know that it can be receive commands - imrodriguezro 2012-04-06 07:29
Ads