除了"除0计算","非法指针"操作以外,还有什么操作会让程序进入except?普通的window api会不会产生什么类似"异常"的状态使得"except"来捕捉它?谢谢!

解决方案 »

  1.   


    但是throw是C++的语法啊,不是Win api的SEH的语法。
      

  2.   

    ┣C++ Exceptions
    ┃┣_com_error
    ┃┣ATL::CAtlException
    ┃┣CException
    ┃┣std::exception
    ┃┗void
    ┣Common Language Runtime Exceptions
    ┃┣Java Language Exceptions
    ┃.............等各种脚本语言抛出的异常
    ┣Managed Debugging Assistants
    ┃┣AsynchronousThreadAbort
    ┃.............调试相关异常
    ┣Native Run-Time Checks
    ┃┣0 Stack pointer corruption
    ┃┣1 Cast to smaller type causing loss of data
    ┃┣2 Stack memory corruption
    ┃┗3 Local variable used before initialization
    ┗Win32 Exceptions
      ┣40010005 Control-C
      ┣40010008 Control-Break
      ┣80000002 Datatype misalignment
      ┣c0000005 Access violation
      ┣c0000006 In page error
      ┣c0000008 An invalid handle was specified
      ┣c0000017 Not Enough Quota
      ┣c000001d Illegal Instruction
      ┣c0000025 Windows cannot continue from this exception
      ┣c0000026 An invalid exception disposition was returned by an exception handler
      ┣c000008c Array bounds exceeded
      ┣c000008d Floating-point denormal operand
      ┣c000008e Floating-point division by zero
      ┣c000008f Floating-point inexact result
      ┣c0000090 Floating-point invalid operation
      ┣c0000091 Floating-point overflow
      ┣c0000092 Floating-point stack check
      ┣c0000093 Floating-point underflow
      ┣c0000094 Integer division by zero
      ┣c0000095 Integer overflow
      ┣c0000096 Privileged instruction
      ┣c00000fd Stack overflow
      ┣c0000135 Unable to Locate DLL
      ┣c0000138 Ordinal Not Found
      ┣c0000139 Entry Point Not Found
      ┣c0000142 DLL Initialization Failed
      ┣c06d007e Module not found
      ┗c06d007f Procedure not found
      

  3.   

    看看这个
    http://wenku.baidu.com/view/e21566232f60ddccda38a041.html