Ok I made a project using MFC so I can make my dialog, then I make a button I want to make it so when I push that button I want it to lunch a programn how would I do this.
Printable View
Ok I made a project using MFC so I can make my dialog, then I make a button I want to make it so when I push that button I want it to lunch a programn how would I do this.
CYourClass m_dYourDialog;
if(DoModal(m_dDialog))
{
//Do fun thingswith return value
}
CYourClass is the class that the classwizard ask you to create when you been adding the dialog to your project.
I don't think you understood what I'm asking I whant to make it so when I press the button it lunches a .EXE program for example if I edit the button this is what I get
Code:void CExp1Dlg::OnLunch()
{
What do I do here?
}
Use ShellExecute() Win32 API function.
http://msdn.microsoft.com/library/de...ellexecute.asp
Kuphryn