Shared Memory is the fastest way to share some data between two processes. Concept is very simple – one process will create an area in the Memory which other process can access it.
IPC (part 2) – Windows Messages
One of the most popular way of Inter-Process Communication is over Windows Messages using SendMessage and PostMessage functions.
In this case one process creates new (very often invisible) window and “listen” for specific window messages. Second process needs to know window handle of the first process – usually can get it over command line parameter or to use FindWindow function to find the window with specific title or created with specific Class name. The process that listen to the messages we are going to call Server, and the one that will send the messages we could call Client.
IPC – Inter Process Communication
Every of us developers had sometime needs for communication between two processes. Either we need to start new process as a different user or to communication with installed service or even to share some data with process on the other computer in local network or over the Internet. In all those cases we need to involve some way of communication between two different processes – IPC.
Welcome to cpp-blog.com
On CPP Blog I will write different articles about Software Development – mostly in C++, but I will touch some thematics for other languages like Objective-C, Java, Delphi, PHP, C#, …

No Comments » 