I have developed a UI using visual C++, application type is diolog based.
For executing another application (CLI) from my UI,I used ShellExecute() function. This application finishes its job and disappears as the code runs in my UI.
From UI side, how to know whether application has done its job successfully?
Can any one please help to implement communication between My visual C++ code and another foreign application opening from that code.
Here is my code snippet for executing application,
CString cmd = "/C command parameters";
HINSTANCE hinst = ShellExecute(0, "open", "bin\\My application.exe", cmd, 0, SW_SHOW);
In My application.exe, there will be printing "successful" in last line if succeeded its operation, Is there any method to read lines from UI side.