// SytemException.h: interface for the CSytemException class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SYTEMEXCEPTION_H__A29D98E6_708B_11D5_AD0F_607057C10000__INCLUDED_)
#define AFX_SYTEMEXCEPTION_H__A29D98E6_708B_11D5_AD0F_607057C10000__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

enum SEC
{
	DEMO_EXCEPTION_NULLPOINTER = 1,
	DEMO_EXCEPTION_FILENOTFOUND,
	DEMO_EXCEPTION_UNABLETOREAD,
	DEMO_EXCEPTION_D3DERROR,
	DEMO_EXCEPTION_TIMER,
	DEMO_EXCEPTION_MAX_CODE
};

class CSystemException  
{
private:

	DWORD					m_dwCode;
	TCHAR					m_pszMessage[256];	

public:
	
	CSystemException( DWORD dwCode, TCHAR* pszMessage );
	CSystemException( DWORD dwCode );

	~CSystemException();
	
	TCHAR* GetMessage();
};

#endif // !defined(AFX_SYTEMEXCEPTION_H__A29D98E6_708B_11D5_AD0F_607057C10000__INCLUDED_)
