与另一个项目一起编译并运行一个项目. [英] Compile and Run one project wihtin another project..

查看:101
本文介绍了与另一个项目一起编译并运行一个项目.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个基于MFC对话框的项目.我想从我的mfc项目中编译并运行另一个MFC项目.

我该怎么办?

我想从我的MFC appln和copmlie中打开CMD提示符,并从我的MFC中运行另一个MFC projectb.
我尝试了CreateProcess(...)函数,但我没有成功使用它..
请帮帮我...

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.

推荐答案

可能是您可以使用CreateProcess/ShellExecuteEx通过适当的命令行启动devenv.exe来构建项目. http://msdn.microsoft.com/en-us/library/b20w810z(VS .80).aspx [ ^ ]

如果您打算使构建自动化,那么一种简单的方法是使用名为devenv.exe的批处理文件.
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.


这篇关于与另一个项目一起编译并运行一个项目.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆