hi all... i've used the following coding for the program... now i want to use *.exe so that i can get the window for which ever .exe function i typed::
CODE
void CDay2Dlg::OnRunpgm()
{
// TODO: Add your control notification handler code here
///////////////////////
// MY CODE STARTS HERE
///////////////////////
// Get the current values from the screen
UpdateData(TRUE);
// Declare a local variable for holding the program name
CString strPgmName;
// Copy the program name to the local variable
strPgmName = m_strProgToRun;
// Make the program name all uppercase
strPgmName.MakeUpper();
// Did the user select to run the Paint program?
if (strPgmName == "PAINT")
WinExec("mspaint.exe", SW_SHOW);
if (strPgmName == "NOTEPAD")
WinExec("notepad.exe", SW_SHOW);
if (strPgmName == "SOLITAIRE")
WinExec("sol.exe", SW_SHOW);
}