C与C++中的异常处理17[12]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 taodm 的 blog

   virtual char const *what() const throw();

   };

 

#endif // !defined inc_structured_exception_

 

    实现是:

#include <exception>

using namespace std;

 

#include "structured_exception.h"

 

#include "windows.h"

 

//

//  ::

//

static void my_translator(unsigned code, exception_pointers *info)

   {

   switch (code)

      {

      case exception_access_violation:

         throw access_violation(*info);

         break;

本文关键:异常
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top