Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use Sub Projects

Status
Not open for further replies.

chameleon

Programmer
Sep 27, 2000
5
0
0
ZA
Hi

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,

Can someone help
Thanks
Chameleon [sig][/sig]
 
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]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top