Ignore:
Timestamp:
08/17/11 14:05:04 (13 years ago)
Author:
sherbold
Message:
  • fixed problems in release build configuration
  • added output in case of wrong command line parameters
File:
1 edited

Legend:

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

    r163 r167  
    5151{ 
    5252        if( argc < 3 ) { 
     53                std::wcout << L"Usage: " << argv[0] << L"<replayfile> <applicationundertest> [-r <resultfile>] [-d <useDefaultDelay>] [-w <waitAfterFinish>] [-p <workingPath>] [-s <startupDelay>]" << std::endl; 
    5354                return -1; 
    5455        } 
    5556 
    56         int optchar; 
     57        int optchar = 0; 
    5758        const char * optarg; 
    5859        // set default values 
     
    101102        //delete[] argv_char; //TODO does not work?! 
    102103 
    103         if (argc<4)  
    104         { 
    105                 std::wcout << L"Usage: " << argv[0] << L"<replayfile> <applicationundertest> [-r <resultfile>] [-d <useDefaultDelay>] [-w <waitAfterFinish>] [-p <workingPath>] [-s <startupDelay>]" << std::endl; 
    106                 return 0; 
    107         } 
    108104        TCHAR * replayfile = argv[1]; 
    109105        TCHAR * appUnderTest = argv[2]; 
Note: See TracChangeset for help on using the changeset viewer.