从单个应用程序执行多个MFC应用程序 [英] Executing multiple MFC applications from a single application

查看:89
本文介绍了从单个应用程序执行多个MFC应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想从另一个单独的MFC应用程序执行多个MFC应用程序.我必须在一个应用程序上插入一个菜单,并且在单击该菜单时,它应基于菜单单击来执行其他MFC应用程序.我该如何实施?

有人可以帮我吗?

解决方案

尝试CreateProcess或ShellExecute,

CreateProcess:
http://msdn.microsoft.com/en-us/library/ms682425%28v = vs.85%29.aspx [ ^ ]

ShellExecute:
http://msdn.microsoft.com/en-us/library/bb762153%28v = vs.85%29.aspx [ ^ ]

还要检查这篇文章,
新手生成程序的基本指南 [ 是否可以运行窗口表单另一个正在运行的窗口表单应用程序中的应用程序 [ 解决方案

Try CreateProcess or ShellExecute,

CreateProcess:
http://msdn.microsoft.com/en-us/library/ms682425%28v=vs.85%29.aspx[^]

ShellExecute:
http://msdn.microsoft.com/en-us/library/bb762153%28v=vs.85%29.aspx[^]

Also Check this Article,
A newbie''s elementary guide to spawning processes[^]


An alternative solution is WinExec.


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


这篇关于从单个应用程序执行多个MFC应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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