Changeset 1341 for trunk/viewinfs.c
- Timestamp:
- Dec 14, 2008, 11:18:26 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/viewinfs.c
r1216 r1341 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2007 Steven H.Levine9 Copyright (c) 2007, 2008 Steven H.Levine 10 10 11 11 03 Aug 07 SHL Minor cleanup 12 14 Dec 08 SHL Add exception handler support 12 13 13 14 ***********************************************************************/ 14 15 15 #define INCL_DOS 16 #define INCL_DOS // DosSleep 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)20 #include "dll\mainwnd.h" // Data declaration(s)22 #include "dll\notebook.h" // appname 23 #include "dll\mainwnd.h" // FM3ModHandle 21 24 #include "dll\fm3dlg.h" 22 #include "dll\init.h" // InitFM3DLL 23 #include "dll\viewinf.h" // ViewInfProc 25 #include "dll\init.h" // InitFM3DLL 26 #include "dll\viewinf.h" // ViewInfProc 27 #include "dll\errutil.h" // Error reporting 28 #include "dll\excputil.h" // Exception handlers 29 30 static PSZ pszSrcFile = __FILE__; 24 31 25 32 int main(int argc, char *argv[]) … … 27 34 HAB hab; 28 35 HMQ hmq; 36 APIRET regRet; 37 EXCEPTIONREGISTRATIONRECORD regRec = { NULL, NULL }; 38 39 regRec.ExceptionHandler = HandleException; 40 regRet = DosSetExceptionHandler(®Rec); 41 if (regRet != NO_ERROR) { 42 DbgMsg(pszSrcFile, __LINE__, 43 "DosSetExceptionHandler failed with error %u", regRet); 44 } 29 45 30 46 hab = WinInitialize(0); … … 33 49 if (hmq) { 34 50 if (InitFM3DLL(hab, argc, argv)) { 35 36 37 38 39 51 WinDlgBox(HWND_DESKTOP, 52 HWND_DESKTOP, 53 ViewInfProc, 54 FM3ModHandle, 55 VINF_FRAME, ((argc > 1) ? MPFROMP("") : MPVOID)); 40 56 } 41 57 DosSleep(250);
Note:
See TracChangeset
for help on using the changeset viewer.