Created
February 7, 2013 10:32
-
-
Save gpakosz/4730132 to your computer and use it in GitHub Desktop.
suppress Microsoft CRT dialog box
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef _WIN32 | |
int stfuHook(int, char*, int* returnValue) | |
{ | |
if (returnValue) | |
*returnValue = 0; | |
return true; | |
} | |
#endif | |
int main(int argc, char * argv[]) | |
{ | |
#ifdef _WIN32 | |
_CrtSetReportHook2(_CRT_RPTHOOK_INSTALL, stfuHook); | |
#endif | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment