Changeset 1341 for trunk/vcollect.c
- Timestamp:
- Dec 14, 2008, 11:18:26 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/vcollect.c
r1229 r1341 10 10 11 11 05 Jan 08 SHL Sync 12 14 Dec 08 SHL Add exception handler support 12 13 13 14 ***********************************************************************/ … … 17 18 #define INCL_DOS 18 19 #define INCL_WIN 20 #define INCL_DOSEXCEPTIONS // XCTP_... 21 #define INCL_DOSERRORS // NO_ERROR 19 22 20 23 #include "dll\fm3dll.h" 21 #include "dll\fm3dll2.h" // #define's for UM_*, control id's, etc.24 #include "dll\fm3dll2.h" // IDM_GREP 22 25 #include "dll\mainwnd.h" // Data declaration(s) 23 26 #include "dll\notebook.h" // Data declaration(s) … … 25 28 #include "dll\init.h" // InitFM3DLL 26 29 #include "dll\collect.h" // StartCollector 30 #include "dll\errutil.h" // Error reporting 31 #include "dll\excputil.h" // Exception handlers 32 33 static PSZ pszSrcFile = __FILE__; 27 34 28 35 int main(int argc, char *argv[]) … … 32 39 QMSG qmsg; 33 40 HWND hwndFrame; 34 intx;41 UINT x; 35 42 BOOL seekandscan = FALSE; 43 APIRET regRet; 44 EXCEPTIONREGISTRATIONRECORD regRec = { NULL, NULL }; 36 45 37 46 strcpy(appname, "VCOLLECT"); 38 47 DosError(FERR_DISABLEHARDERR); 48 49 regRec.ExceptionHandler = HandleException; 50 regRet = DosSetExceptionHandler(®Rec); 51 if (regRet != NO_ERROR) { 52 DbgMsg(pszSrcFile, __LINE__, 53 "DosSetExceptionHandler failed with error %u", regRet); 54 } 55 39 56 for (x = 1; x < argc; x++) { 40 57 if (*argv[x] == '*' && argv[x][1] == '*') { … … 43 60 } 44 61 } 62 45 63 hab = WinInitialize(0); 46 64 if (hab) {
Note:
See TracChangeset
for help on using the changeset viewer.