I have a C# example to catch the exception of C++ program (divide by zero). my aim is that I want to catch the exception of that C++ program but after it crashes, I don't want the human user to click the windows indicating the program failed, after that crash.
So, what I have done is that reflection but I didn't know reflection is only applicable for a C# program. So, when 2 programs are C# with the given scenario, it's OK but my case is that the target application is a C++ program.
So, how can I do this?
I feel to change the C++ code by modifying with this but, couldn't manage:
As seen, there is an API SetUnhandledExceptionFilte
r which can help to avoid popup a window for user mode exception
So, could someone provide me a working code for this?