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

📄 debug.h

📁 Debug.x:封装SEH 作用:在程序发生未处理的异常时
💻 H
字号:
// Debug.h: interface for the CDebug class.
// Functions:
// Track out the exception's trip. Works for Release & Debug.
// How to use:
// To install a unhandled exception filter, type this:
//  CDebug::Start ();
// To output unhandled exceptions catched by the filter function, use:
//  CDebug::ToFile (filename); (if not using this function, a message will be shown)
// To uninstall such filter, use:
//  CDebug::Free ();
// Designed by Wei Shufng. _cout@163.com
// Compiled with VC++6.0, Windows XP professional 2002. sp1
// Only for Intel CPUs.
// Finished @ 2004-09-17. Last Modified @ 2004-09-24.
// new patches:
//    Getting the section's name.
// Any code by you is in your own risk.
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DEBUG_H__3B360872_1CE4_4AE3_94A2_F662F3ED2BFD__INCLUDED_)
#define AFX_DEBUG_H__3B360872_1CE4_4AE3_94A2_F662F3ED2BFD__INCLUDED_

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

class CDebug  
{
public:
	static	void	Start();
	static	void	Free ();
	static	void	ToFile (char *pszFile);
protected:
	static LONG WINAPI DebugInfo (EXCEPTION_POINTERS *pException);
	static void		DealExcep (PEXCEPTION_RECORD pExcp);
	static void		ImgStackWalk (PCONTEXT pCon);
protected:
	static	LPTOP_LEVEL_EXCEPTION_FILTER m_pPre;
	static	char	m_pszFile[MAX_PATH];
};

#endif // !defined(AFX_DEBUG_H__3B360872_1CE4_4AE3_94A2_F662F3ED2BFD__INCLUDED_)

⌨️ 快捷键说明

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