CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - SetUnhandledExceptionFilter
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - SetUnhandledExceptionFilter - List
[
Other
]
WindowsErrorCodes
DL : 0
Windows 错误码翻译(子)程序 本程序包含两个关于 windows 错误的东西。 第一个是筛选器异常处理。使用这里的筛选器异常处理,首先要要引入源代码: #include \"Exception_Debug.cpp\" 然后在程序入口代码中使用如下代码: SetUnhandledExceptionFilter(_ProcessErrDealing) 这样就注册了一个筛选器异常处理。 第二个是 Windows 错误码翻译,将 Windows 错误码翻译成文本显示出来。使用这个功能,首先要引入源代码: #include \"WindowsErrorCodes.cpp\" 然后在遇到 Windows 错误码时使用: char * errtext = TranslateErrorCode(err) //err = GetLastError() 则 errtext 指向一个字符串,显示了 err 号 Windows 错误码对应的预定义值。 例如:在遇到 0 号 Windows 错误时,调用这个函数等到的结果是:\"ERROR_SUCCESS\" main.cpp 是一个主程序,可以在 VC++ 6.0 下编译。可以把它视为一个例程。 另外,本程序收录的错误码只是一部分常见的 Windows 错误码。如果您发现有本程序没有包含的错误码,可以自己添加到 WindowsErrorCodes.cpp 中去。
Date
: 2008-10-13
Size
: 74.99kb
User
:
孙谨
[
Other resource
]
U盘自动复制
DL : 0
LoadLibrary GetProcAddress FreeLibrary LocalFree GetVersionEx CloseHandle MapViewOfFile UnmapViewOfFile ExitProcess SetUnhandledExceptionFilter CWinApp OpenMutex CreateMutex CreateThread DeviceIoControl CString GetLogicalDrives GetDriveType CreateFile GetSystemDirectory FindFirstFile GetLastError CopyFile FindClose Sleep CDialog CDataExchange CWnd DestroyIcon LoadIcon GetSystemMenu CMenu LoadString AppendMenu IsIconic CPaintDC SendMessage GetSystemMetrics CRect GetClientRect DrawIcon DefWindowProc ShowWindow
Date
: 2008-10-13
Size
: 9.97kb
User
:
王中才
[
Other
]
VC异常捕获,Dmp文件提取
DL : 2
只需注册 ::SetUnhandledExceptionFilter(ExpFilter); 将代码放到工程中编译就可以抓获当前错误堆栈文件输出,并且生成当前出错程序的dump。
Date
: 2009-06-29
Size
: 15.12kb
User
:
xuswjtu@163.com
[
Other
]
WindowsErrorCodes
DL : 0
Windows 错误码翻译(子)程序 本程序包含两个关于 windows 错误的东西。 第一个是筛选器异常处理。使用这里的筛选器异常处理,首先要要引入源代码: #include "Exception_Debug.cpp" 然后在程序入口代码中使用如下代码: SetUnhandledExceptionFilter(_ProcessErrDealing) 这样就注册了一个筛选器异常处理。 第二个是 Windows 错误码翻译,将 Windows 错误码翻译成文本显示出来。使用这个功能,首先要引入源代码: #include "WindowsErrorCodes.cpp" 然后在遇到 Windows 错误码时使用: char * errtext = TranslateErrorCode(err) //err = GetLastError() 则 errtext 指向一个字符串,显示了 err 号 Windows 错误码对应的预定义值。 例如:在遇到 0 号 Windows 错误时,调用这个函数等到的结果是:"ERROR_SUCCESS" main.cpp 是一个主程序,可以在 VC++ 6.0 下编译。可以把它视为一个例程。 另外,本程序收录的错误码只是一部分常见的 Windows 错误码。如果您发现有本程序没有包含的错误码,可以自己添加到 WindowsErrorCodes.cpp 中去。
Date
: 2025-07-04
Size
: 75kb
User
:
孙谨
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.