
How to execute a MFC app in the another MFC app
Try using CreateProcess(..) + WaitForSingleObject() API's. For an example
see
Q131775 - HOWTO: Access Child Process Exit Code from 32-Bit Parent
Process
--
Cheers
Check Abdoul
----------------
Quote:
> Hi, Everyone
> I have a question about to execute a MFC app from the main
application.
> I try to using the _spawnl( _P_WAIT, prog,prog, "_spawnl", "two", NULL );
to
> excute the prog. when the prog is win32 console application, it should be
> ok, but if the prog is MFC application then the system whill popup up a
> window prompts "not found the _spawnl". I think may be have some wrong
with
> MFC app in the _spawnl(...).
> Who can tell me how to execute a MFC app in the other application?
> Thanks anyway,
> Bill sun