Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I want to execute multiple MFC applications from another separate MFC application. I have to insert a menu on one application and while clicking on that menu, it should execute other MFC applications based on menu click. How can I implement this?

Can anybody please help me?
Posted
Updated 8-May-11 22:34pm
v2

 
Share this answer
 
v2
Comments
ShilpiP 9-May-11 4:01am    
Nice +5
Olivier Levrey 9-May-11 4:14am    
Good answer. Have a 5.
Jijesh Balakrishnan 9-May-11 4:28am    
thank you
An alternative solution is WinExec.
 
Share this answer
 
Comments
Olivier Levrey 9-May-11 4:17am    
Mmmm... you shouldn't recommand to use WinExec since this function is provided only for 16-bit Windows compatibility.
I voted 2.
ShilpiP 9-May-11 4:32am    
I know but it is an alternative solution. I always use CreateProcess to execute an exe.
anyways thanks.
Running one application in another should be the last resort.
Chance are, your are asking about running a "guest" application in a windows of another one. In this case, please take a look at my past answer:
Is it possible to run a window form application from another running window form application[^]. Even though it is mostly about .NET, the idea is the same.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900