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

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

本文简介:选择自 taodm 的 blog

    其实现文件为:

#include "structured_exception.h"

 

#include "eh.h"

 

//

//  ::

//

static void my_translator(unsigned, exception_pointers *info)

   {

   throw structured_exception(*info);

   }

 

//

//  structured_exception::

//

structured_exception::structured_exception

      (exception_pointers const &info) throw()

   {

   exception_record const &exception = *(info.exceptionrecord);

   address_ = exception.exceptionaddress;

   code_ = exception.exceptioncode;

   }

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

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

go top