I call a function from a DLL, for example:
__declspec ( dllimport ) bool dll_function(...);
int main() {
[...]
if (dll_function(...)) {
[...]
}
}
In some cases, the data that I pass to the DLL function will cause the DLL to crash. Is it possible to catch this, so my application also does not crash (without changing the DLL that I did not create)?
source
share