?? runtimeexception.h
字號(hào):
// ***************************************************************
// RuntimeException version: 1.0 · date: 06/30/2006
// -------------------------------------------------------------
//
// -------------------------------------------------------------
// Copyright (C) 2001-2006 - Midapexsoft All Rights Reserved
// ***************************************************************
//
// ***************************************************************
#pragma once
#include "afx.h"
class CRuntimeException :
public CException
{
public:
CRuntimeException(DWORD dwError);
CRuntimeException(LPCTSTR lpszErrorMessage);
//Methods
#ifdef _DEBUG
virtual void Dump(CDumpContext& dc) const;
#endif
virtual BOOL GetErrorMessage(LPTSTR lpstrError, UINT nMaxError, PUINT pnHelpContext = NULL);
CString GetErrorMessage();
DWORD GetErrorCode() const;
protected:
DECLARE_DYNAMIC(CRuntimeException)
//Data members
DWORD m_dwError;
LPCTSTR m_lpszErrorMessage;
};
#define THROW_EX_CODE(error) throw new CRuntimeException(error);
#define THROW_EX(errorMessage) throw new CRuntimeException(errorMessage);
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -