I have a couple C++ apps. One is coded with C++, using VC6. The other app is also coded with C++, using VS2005.
Let's call them App_A and App_B, respectively.
Both of these apps contain a user interface.
I want to launch App_B from App_A. And I want App_B to behave modally, in that, I want App_A's interface to be "disabled" while App_B is open. Only When App_B is closed should App_A once again become enabled.
So far I can launch App_B successfully from App_A, using CreateProcess(....). I also can get App_B to behave "modally" by calling WaitForSingleObject(pi.hProcess, INFINITE) immediately after launching it with CreateProcess(....). However, I've found that if I click on the menu bar in App_A when App_B is open, then App_A displays the classic windows "(Not Responding)" message in its title bar, giving the appearance of a crash in progress (menu bar becomes white and menu text is obscured).
Any thoughts on how to tighten this up? I feel like I'm 95% there.
Thanks very much.