如何通过mfc中的按钮将应用程序调用到另一个应用程序 [英] how call an application to another by button in mfc
问题描述
大家好我想问一下如何通过mfc中的按钮将对话框应用程序调用到另一个应用程序
actully我制作了一个Windows计算器,现在我为科学计算器做了另一个对话框。当科学模式从标准模式中选择时,我想要开放的科学计算器。这个问题已经被Diba.s解决了,但还有另一个问题,那就是如何在新的时候关闭之前的对话框对话框已打开?
请帮助我
谢谢
hi every body I want to ask that how can I call dialog application to another application by a button in mfc
actully I make a windows calculator and now I make an other dialog for scientific calculator . I want open scientific calculator when scientific mode has selected from standard mode.and this problem had been solved by Diba.s solution but there is another pro
blem and that is how to close the previous dialog when new dialog has been opened?
plz help me
thanks
推荐答案
右键单击当前项目(例如:Project1)然后添加然后资源
在新对话框中,右键单击对话框的背景并添加类
将班级名称设置为 CSecondDlg 并将其基于 CDialog
现在转到 project1Dlg .cpp 并添加:
right click on current project(for example:Project1)and then Add and then resource
in new dialog box , right click on background of dialog and Add Class
Set the Class Name to CSecondDlg and base it on CDialog
now go to project1Dlg.cpp and add this :
#include "SecondDlg.h"
和你要打开第二个对话框的按钮代码:
and this code for button that you want to open second dialog:
CSecondDlg dlg;
dlg.DoModal();
你的意思是这个吗?!!
did u mean this?!!
这篇关于如何通过mfc中的按钮将应用程序调用到另一个应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!