I have two applications running on the same computer and I want them to be able to communicate with each other. How would I go about doing this?
Printable View
I have two applications running on the same computer and I want them to be able to communicate with each other. How would I go about doing this?
What is it you want to do exactly ?
I've just done something that sounds similar...
I have a chat program and I want it to be able to send messages from a remote computer to the client. The client will receive this message. Send a command to another program running on that computer which will return a command to the chat program verifying that the command was received and acted upon. The chat program will then relay that response to the origional sender.
I need to be able to send a command to a running program so that it runs a command.
Hi Gary007,
For the Remote PC to Client you can use Serial Port (NULL modem cable) or use Winsock (TCP/IP protocol).
But for the client PC to send command to another local program. you can do it in 2 way.
1. Using the DDE, if the local program is develop by you. or
2. Useing SendMessage/PostMessage API function, but for this you need to know the local program window caption or handle of the local program window.
Hope this can help you. :)
regards,
Chris.C