Changeset 1341 for trunk/ini.c
- Timestamp:
- Dec 14, 2008, 11:18:26 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ini.c
r1215 r1341 10 10 11 11 05 Jan 08 SHL Sync 12 14 Dec 08 SHL Add exception handler support 12 13 13 14 ***********************************************************************/ … … 15 16 #define INCL_DOS 16 17 #define INCL_WIN 18 #define INCL_DOSEXCEPTIONS // XCTP_... 19 #define INCL_DOSERRORS // NO_ERROR 17 20 18 21 #include "dll\fm3dll.h" 19 #include "dll\notebook.h" // Data declaration(s)22 #include "dll\notebook.h" // hwndHelp 20 23 #include "dll\init.h" // InitFM3DLL 21 24 #include "dll\inis.h" // StartIniEditor 25 #include "dll\errutil.h" // Error reporting 26 #include "dll\excputil.h" // Exception handlers 27 28 static PSZ pszSrcFile = __FILE__; 22 29 23 30 int main(int argc, char *argv[]) … … 27 34 QMSG qmsg; 28 35 HWND hwndFrame; 36 APIRET regRet; 37 EXCEPTIONREGISTRATIONRECORD regRec = { NULL, NULL }; 29 38 30 39 DosError(FERR_DISABLEHARDERR); 40 41 regRec.ExceptionHandler = HandleException; 42 regRet = DosSetExceptionHandler(®Rec); 43 if (regRet != NO_ERROR) { 44 DbgMsg(pszSrcFile, __LINE__, 45 "DosSetExceptionHandler failed with error %u", regRet); 46 } 47 31 48 hab = WinInitialize(0); 32 49 if (hab) {
Note:
See TracChangeset
for help on using the changeset viewer.