I would like to know how to actually incorparate two projects into one ,i would like to call the second project in the first one by the click of the button,
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.