home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 6 / mastvb6.iso / numega / sc501.exe / data1.cab / Examples / STDAFX.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-25  |  650 b   |  35 lines

  1. // stdafx.h : include file for standard system include files,
  2. //  or project specific include files that are used frequently, but
  3. //      are changed infrequently
  4. //
  5.  
  6. #include <windows.h>
  7. #include <windowsx.h>
  8. #include <tchar.h>
  9. #include <stdio.h>
  10. #include <direct.h>
  11. #include <commctrl.h>
  12. #include <ole2.h>
  13. #include <olectl.h>
  14.  
  15. //
  16. // macros for using try/catch vs. __try/__except
  17. //
  18.  
  19. #ifdef _TRY
  20. #undef _TRY
  21. #endif
  22.  
  23. #ifdef _CATCH
  24. #undef _CATCH
  25. #endif
  26.  
  27. #ifdef USE_WIN32_EXCEPTIONS
  28. #define _TRY    __try
  29. #define _CATCH  __except(EXCEPTION_EXECUTE_HANDLER)
  30. #else
  31. #define _TRY    try
  32. #define _CATCH  catch(...)
  33. #endif
  34.  
  35.