Ignore:
Timestamp:
2008-11-05T15:20:18+13:00 (15 years ago)
Author:
ak19
Message:

Now the console window no longer appears when calling gsdl_system() method to launch a process.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/common-src/src/lib/gsdltools.cpp

    r17545 r17698  
    135135               NULL,
    136136#else
    137                DETACHED_PROCESS,
     137               CREATE_NO_WINDOW, // previously this was: DETACHED_PROCESS,
     138               // see http://msdn.microsoft.com/en-us/library/ms682425.aspx
     139               // and http://msdn.microsoft.com/en-us/library/ms684863(VS.85).aspx
    138140#endif
    139141                           NULL,
     
    141143                           &ps,
    142144                           &pi);
     145
    143146  if (!res) {
    144147    logout << "gsdl_system failed to start " << cmd_c
    145        << " process, error code " << GetLastError();
     148       << " process, error code " << GetLastError() << endl;
    146149    delete []cmd_c;
    147150    return -1;
     
    166169    if (system (NULL) == 0) {
    167170      logout << "gsdl_system failed to start " << cmd_c
    168          << " process, command interpreter not found\n";
     171         << " process, command interpreter not found" << endl;
    169172      delete []cmd_c;
    170173      return -1;
Note: See TracChangeset for help on using the changeset viewer.