How to execute a MFC app in the another MFC app 
Author Message
 How to execute a MFC app in the another MFC app

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



Sun, 13 Feb 2005 09:11:24 GMT  
 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



Sun, 13 Feb 2005 09:23:27 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How to execute a MFC app in the another MFC app

2. MFC and DOS apps - Redirecting console output to an MFC app (Newbie)

3. What's different between MFC App and MFC App as NTService

4. MFC and DOS apps - Redirecting console output to an MFC app (Newbie)

5. Executing Programs from an mfc App

6. Executing my MFC app from Internet Explorer

7. Executing an exe within an MFC app

8. Q:execute speed of MFC app ?

9. How does C# app compare to MFC app??

10. C++ MFC App to IE/IIS App

11. C++ MFC App to IE/IIS App

12. Open Control panel app (*.cpl) from MFC app?

 

 
Powered by phpBB® Forum Software