⤷ Don't display application errors

Use SetErrorMode function with SEM_FAILCRITICALERRORS parameter. It allows your application don't display error messages, which can appears during executing of your application. In this example, you won't see error "Division by zero".