Changeset 1498 for trunk/gsinstaller/launchApp.cpp
- Timestamp:
- 2000-09-05T03:30:48+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsinstaller/launchApp.cpp
r1397 r1498 11 11 } 12 12 13 void launchApp::setCommandLine(string commandLine) 14 { this->commandline = commandLine; 15 } 16 13 17 int launchApp::run(bool test, int deftest, string prompt, string header, bool wait) 14 18 { gsPlatform platform; 15 19 FilePath exePath; 20 string runLine; 16 21 17 22 if (test) … … 43 48 process.hProcess = 0; 44 49 50 // build command line if required 51 if (this->commandline != "") 52 { runLine = exePath.pathString() + " " + this->commandline; 53 } 54 45 55 // execute the process 46 if (CreateProcess(exePath.cString(), NULL, NULL, NULL, FALSE, 0, NULL, NULL, &startup, &process) == 0) 56 if (CreateProcess((LPSTR) exePath.cString(), 57 runLine != "" ? (LPSTR) runLine.c_str() : NULL, 58 NULL, NULL, FALSE, 0, NULL, NULL, 59 &startup, &process) == 0) 47 60 { DWORD error = GetLastError(); 48 61 return -2;
Note:
See TracChangeset
for help on using the changeset viewer.