home *** CD-ROM | disk | FTP | other *** search
/ The Net: Ultimate Internet Guide / WWLCD1.ISO / pc / directx2 / sdk / samples / include / cgexcpt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-28  |  1.1 KB  |  48 lines

  1. /*===========================================================================*\
  2. |
  3. |  File:        cgexcpt.h
  4. |
  5. |  Description: 
  6. |       Exception classes
  7. |       
  8. |-----------------------------------------------------------------------------
  9. |
  10. |  Copyright (C) 1995-1996 Microsoft Corporation.  All Rights Reserved.
  11. |
  12. |  Written by Moss Bay Engineering, Inc. under contract to Microsoft Corporation
  13. |
  14. \*===========================================================================*/
  15.  
  16. #ifndef CGEXCPT_H
  17. #define CGEXCPT_H
  18.  
  19. #include <windows.h>
  20.  
  21. class CGameException
  22. {
  23. public:
  24.     CGameException(int resID = 0);  // 0 == no message
  25.     virtual ~CGameException();
  26.  
  27.     virtual int GetResID(){return mResID;}
  28.  
  29. protected:
  30.     int mResID;
  31. };
  32.  
  33. class CGameStartupError : public CGameException
  34. {
  35. public:
  36.     CGameStartupError(int resID = 0);   // 0 == no message
  37.     virtual ~CGameStartupError();
  38. };
  39.  
  40. class CGameResourceError : public CGameException
  41. {
  42. public:
  43.     CGameResourceError();
  44.     virtual ~CGameResourceError();
  45. };
  46.  
  47. #endif // CGEXCPT_H
  48.