This is working off of a dialog not SDI or MDI
as a global variable declare
CString CmdLinePass;
__________________
create a function
void ProjectDlg::SendCommand(CString PrgName)
{
CmdLinePass = PrgName;
WinExec(CmdLinePass, SW_SHOW);
}//PrgName is the variable name - not the actual prgname.
//you can use the same code just the way it is.
this is the function on your button
void ProjectDlg::Button()
{
SendCommand("Name of program you want to include.exe"

;
}//make sure that you include a released copy of the exe
//file to the program you want to include in the debug
//folder and/or release folder of your project you want
//to open it from.
/////////////
if you need it for the MDI or SDI then you would declare the global variable in the View Class and all the other functions too.
I hope this can help.
Stefee [sig][/sig]