Changeset 91 for trunk/gotcha.cpp


Ignore:
Timestamp:
Oct 2, 2020, 11:01:19 PM (5 years ago)
Author:
Gregg Young
Message:

Add the last of the hard coded error messages to the string table; Cleanup the string table and dialogs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gotcha.cpp

    r89 r91  
    114114    HMQ hmq = WinCreateMsgQueue (hab, 0);
    115115
    116     // Load settings move up here so the string table is available for the already running error
     116    // Load settings moved up here so the string table is available for the already running error
    117117    pset = new SETTINGS;
    118118    //DisplayError("DEBUG", "%d", Version());
     
    120120    if ((Version() < 2))
    121121    {
    122         DisplayError("GOTCHDLL.DLL Outdated",
    123                      "The file gotchdll.dll is is outdated. You should have "
    124                      "received a new version with the program, check for an "
    125                      "older version of gotchdll.dll in your LIBPATH. Is the "
    126                      "new gotchdll.dll in a directory in your LIBPATH?");
     122        DisplayError(RSTR (IDS_ERROR_DLLOUTDATED),
     123                     RSTR (IDS_ERROR_DLLOUTDATEDMSG));
    127124        exit (0);
    128125    }
     
    138135    rc = DosCreateMutexSem("\\SEM32\\GOTCHA", &hmtx, 0, FALSE);
    139136    if (rc) {
    140         DisplayError("Semaphore creation failed",
    141                      "Try restarting Gotcha Quiet");
     137        DisplayError(RSTR (IDS_ERROR_SEMAPHOREFAILED),
     138                     RSTR (IDS_ERROR_SEMAPHOREFAILEDMSG));
    142139        exit (0);
    143140    }
Note: See TracChangeset for help on using the changeset viewer.