ddexcept.h

来自「C:Documents and SettingsAdministrator桌面V」· C头文件 代码 · 共 37 行

H
37 行
字号
// DDExcept.h : interface of the CDDException class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_DDEXCEPT_H__BDD2D54C_9F40_11D2_8329_B912F313131A__INCLUDED_)
#define AFX_DDEXCEPT_H__BDD2D54C_9F40_11D2_8329_B912F313131A__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CDDException

class CDDException : public CException
{
// Construction
public:
	CDDException(BOOL bAutoDelete = TRUE, LPCTSTR strDDMsg = NULL);
	virtual ~CDDException();

// Implementation
public:
	void SetErrorMessage( const CString& strDDMsg ) { m_strMsg = strDDMsg; }
	virtual BOOL GetErrorMessage(LPTSTR lpszError, UINT nMaxError,
		PUINT pnHelpContext = NULL);
	virtual int ReportError(UINT nType = MB_OK, UINT nMessageID = 0);
	int GetDDErrorMessage( UINT nError, CString& strDDMsg);

// Attributes
protected:
	CString m_strMsg;

};

#endif // AFX_DDEXCEPT_H__BDD2D54C_9F40_11D2_8329_B912F313131A__INCLUDED_

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?