ExceptionHandle

所属分类:系统编程
开发工具:Visual C++
文件大小:13KB
下载次数:3
上传日期:2011-08-19 11:49:18
上 传 者kickthc
说明:  Preventing application crash by using exception handling mechanism. The ExceptionTest project example demonstrate how to avoid application crash, by using the __try and __except statements. When you run the sample, you get a dialog-box containing 2 buttons that deliberately causes an exception. The first button raises the exception without exception handling block, and this causes the application to crash immediately. The second button raises the exception from within a __try block. When the exception is occurred, the function inside the __except statement (GetExceptionInformation) is called. This function displays a special dialog-box with a little information about the exception, and allow the user to decide whether he wants to continue to run the program or to terminate it.

文件列表:
ExceptionHandle\ExceptionTest.dsp (4186, 2003-08-26)
ExceptionHandle\ExceptionTest.dsw (549, 2003-08-26)
ExceptionHandle\main.cpp (1805, 2003-08-26)
ExceptionHandle\myexcep.cpp (3173, 2003-09-16)
ExceptionHandle\myexcep.h (110, 2003-08-26)
ExceptionHandle\resource.h (773, 2003-08-26)
ExceptionHandle\Script1.aps (32932, 2003-09-16)
ExceptionHandle\Script1.rc (3246, 2003-09-16)
ExceptionHandle (0, 2011-08-19)

近期下载者

相关文件


收藏者