Click here to Skip to main content
15,894,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have one MFC dialog based project. and i want to compile and run aother MFC project from my mfc project.

How do i do it?

I want to open CMD prompt from my MFC appln and copmlie and run the another MFC projectb from my MFC.
I tried CreateProcess(...) function but I dint succeed using that..
please pls help me out...
thanks in advance.
Posted

1 solution

May be you can use CreateProcess/ShellExecuteEx to launch devenv.exe with proper command lines to build the project. http://msdn.microsoft.com/en-us/library/b20w810z(VS.80).aspx[^]

If you are planning to automate your builds then an easy way would be to use batch files which would call devenv.exe.
 
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