structured_exception.h 443 B

1234567891011121314151617181920
  1. #pragma once
  2. #include "eh.h"
  3. #include "windows.h"
  4. #include <exception>
  5. #include <afx.h>
  6. using namespace std;
  7. //在多线程程序中,每个线程有一个独立的转换函数。
  8. class structured_exception : public std::exception
  9. {
  10. public:
  11. structured_exception(EXCEPTION_POINTERS const &) throw();
  12. static void install() throw();
  13. virtual char const *what() const throw();
  14. void const *where() const throw();
  15. private:
  16. void const *address_;
  17. unsigned code_;
  18. };