Changeset 154 for trunk/MFCtooling/replay/LogParser.cpp
- Timestamp:
- 08/12/11 15:03:24 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MFCtooling/replay/LogParser.cpp
r143 r154 15 15 16 16 } 17 17 18 18 19 … … 40 41 ZeroMemory(&pi, sizeof(pi)); 41 42 ZeroMemory(&si, sizeof(si)); 42 CreateProcess(NULL, runCommand, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi); 43 44 //divide runCommand into path to executable and parameters 45 wchar_t *pdest = _tcschr(runCommand, ' '); 46 int positionSpace = (int)(pdest - runCommand + 1); 47 _TCHAR *executable = new _TCHAR[512]; 48 for(int i=0; i<positionSpace; i++) executable[i] = runCommand[i]; 49 executable[positionSpace] = '\0'; 50 51 CreateProcess(executable, L" c:\\programme\\mahr\\marwin\\commands/pause.dll", NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi); 52 //CreateProcess(NULL, runCommand, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi); 43 53 hProcess = pi.hProcess; 44 54 CloseHandle(pi.hThread); 55 45 56 std::wcout << L"waiting " << startupTime << L" ms for application under test to intialize" << std::endl; 46 57 Sleep(startupTime);
Note: See TracChangeset
for help on using the changeset viewer.