I have 3 simple program and each is a simple window. I will start all 3 of the process and then click on program 1 or 2's button to show up the window of program 3.
Program 1 & 2: Only have 1 button. When clicked, shows the hidden process of program 3(which is also a window).
Program 3: Starts up as a hidden process, and it is waiting for program 1 and 2's message before popping up. Depending on the button press, the window caption should change to the caption of program 1 or 2.
I am not sure what function or do I use a thread to make this behavior? I believe I need to use some sort of thread to do this.. first make program 3 hidden and then waiting for the message of program 1 and 2.. any ideas?
EDIT: I am using C++ and I am told to use a semaphore.