How to catch unhandled exceptions?
-
Hi, I have an old program without and try/catch statements. Now I'm trying to handle some exceptions . However, I don't want to add any try/catch pieces in the code - it's big work. So, I hope to use a API: SetUnhandledExceptionFilter() to handle all exceptions and jump into my handle function. However, the handle function must return one of these: EXCEPTION_EXECUTE_HANDLER EXCEPTION_CONTINUE_EXECUTION EXCEPTION_CONTINUE_SEARCH This is boring, the exception will still be thrown. I hope to hide exception in my filter handle function. How can I do that?
-
Hi, I have an old program without and try/catch statements. Now I'm trying to handle some exceptions . However, I don't want to add any try/catch pieces in the code - it's big work. So, I hope to use a API: SetUnhandledExceptionFilter() to handle all exceptions and jump into my handle function. However, the handle function must return one of these: EXCEPTION_EXECUTE_HANDLER EXCEPTION_CONTINUE_EXECUTION EXCEPTION_CONTINUE_SEARCH This is boring, the exception will still be thrown. I hope to hide exception in my filter handle function. How can I do that?