Click here to Skip to main content
15,790,795 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I want your help.
I have a MFC application (Created in Visual Studio 2008) and I need to launch another dialog based application .exe file (Also created in Visual Studio 2008) on clicking a button from the first application.

Thanks in advance.

1 solution

Two options:

Of course you may also use the system[^] CRT call.
Share this answer
Vineeth.B 14-Sep-12 7:29am    
Thanks for the solution.

Will it cause any thread related or process related issues???
CPallini 14-Sep-12 7:34am    
Yes and no.
You should read carefully the documentation.
I mean there aren't striking side effects, however you are launching another process. If the two processes need to communicate than you have to use some IPC mechanism.
Vineeth.B 15-Oct-12 5:20am    
Thanks for your help.
CPallini 15-Oct-12 5:27am    
You are welcome.

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