
WhyNotNow wrote:Hi people,
I was hoping someone would give me some direction in this matter.I am currently trying to figure out how to make a program i have written execute or communicate with other programs.
Thank You.


WhyNotNow wrote:Well thank you for your first link, but to clarify a bit more. I have written a program, now i would like that program to launch another upon opening or until specify command is issued. Just some direction would be of great help.
yourProgram.exe
theOtherProgramYouWantToLaunch.exe



WhyNotNow wrote:OK great. The language im using is C++ and yes it is windows. Thank You for your cont. help.
#include <iostream>
using namespace std;
int main()
{
string foo;
cin >> foo;
if(foo == "yourStringHur")
{
system("that\Other\App\You\Want\to\Launch.exe");
}
return 0;
}

ShellExecute( NULL, "open", "ApplicationName.exe","Parameters", "Path/to/work/directory/", SW_SHOW);
Users browsing this forum: No registered users and 0 guests