Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <Windows.h>
- #include <iostream>
- using namespace std;
- LONG WINAPI UnhandledExceptionFilter(PEXCEPTION_POINTERS exception)
- {
- printf("Got an unhandled exception.");
- return EXCEPTION_CONTINUE_SEARCH;
- }
- int _tmain(int argc, _TCHAR* argv[])
- {
- SetUnhandledExceptionFilter(UnhandledExceptionFilter);
- int a = 0;
- int b = 0;
- int c = a / b;
- cin.get();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement