Raise Exception 20071974 VOID Raise Exception DWORD dw

  • Slides: 8
Download presentation
Raise. Exception 게임공학과 20071974 김현수

Raise. Exception 게임공학과 20071974 김현수

정의 �VOID Raise. Exception( �DWORD dw. Exception. Code, �DWORD dw. Exception. Flags, �DWORD c.

정의 �VOID Raise. Exception( �DWORD dw. Exception. Code, �DWORD dw. Exception. Flags, �DWORD c. Arguments, �CONST DWORD* lp. Arguments)

Source Code DWORD Defined. Exception = 0 x 00; /* Severity */ 예외의 심각도

Source Code DWORD Defined. Exception = 0 x 00; /* Severity */ 예외의 심각도 지정 Defined. Exception |= 0 x 01<<31; Defined. Exception |= 0 x 01<<30; /* MS or Customer */ 사용자 예외 코드 지정 Defined. Exception |= 0 x 01<<29; /* Reserved, Must be 0 */ // 시스템 예약 Defined. Exception != 0 x 00<<28; /* Facility code */ Defined. Exception != 0 x 00<<16; /* Exception code */ // 예외 코드 지정 Defined. Exception |= 0 x 08;

Source Code __try { _tprintf( _T("Send: exception code: 0 x%x n"), Defined. Exception); Raise.

Source Code __try { _tprintf( _T("Send: exception code: 0 x%x n"), Defined. Exception); Raise. Exception(Defined. Exception, 0, NULL); } __except(EXCEPTION_EXECUTE_HANDLER) { DWORD expt. Type = Get. Exception. Code(); _tprintf( _T("Recv: exception code: 0 x%x n"), expt. Type ); }