VC++异常处理
1、测试代码:
#include <stdio.h> #include <windows.h> void main() { __try { DWORD dwDemonObj = 0x0E; DWORD dwObjTypeAddr = dwDemonObj+0x8; DWORD dwObjType = *(DWORD*)dwObjTypeAddr; DWORD dwType = 0x2E; if (dwObjType != dwType) { printf("!="); } else { printf("=="); } } __except( EXCEPTION_EXECUTE_HANDLER ) { printf("catch ...\n"); } printf("main out\n"); }
2、
3、