⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 runtimeexception.h

📁 串口通信mfc源码
💻 H
字号:
// ***************************************************************
//  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);


⌨️ 快捷键说明

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