Changeset 159


Ignore:
Timestamp:
08/14/11 19:58:17 (13 years ago)
Author:
jhall
Message:

Running again with variable command arguments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MFCtooling/replay/LogParser.cpp

    r154 r159  
    4343 
    4444                //divide runCommand into path to executable and parameters 
    45                 wchar_t *pdest = _tcschr(runCommand, ' '); 
     45                /*wchar_t *pdest = _tcschr(runCommand, ' '); 
    4646                int positionSpace = (int)(pdest - runCommand + 1); 
    4747                _TCHAR *executable = new _TCHAR[512]; 
    4848                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); 
     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); 
    5353                hProcess = pi.hProcess; 
    5454                CloseHandle(pi.hThread); 
Note: See TracChangeset for help on using the changeset viewer.