Advertisement
Guest User

Untitled

a guest
Apr 25th, 2014
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include <Windows.h>
  3. #include <iostream>
  4.  
  5. using namespace std;
  6.  
  7. LONG WINAPI UnhandledExceptionFilter(PEXCEPTION_POINTERS exception)
  8. {
  9. printf("Got an unhandled exception.");
  10. return EXCEPTION_CONTINUE_SEARCH;
  11. }
  12.  
  13. int _tmain(int argc, _TCHAR* argv[])
  14. {
  15. SetUnhandledExceptionFilter(UnhandledExceptionFilter);
  16. int a = 0;
  17. int b = 0;
  18. int c = a / b;
  19. cin.get();
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement