Aborting an MFC-based C++ without a dialog pop-up

  abort, c++, mfc, visual-c++

We have an old MFC-based C++ gui app (Visual Studio 6.0) which often does not terminate correctly. So I would like to be able to use a instruction like "abort();" to immediately end it.

However, the abort() instruction causes a dialog box to pop up, rather than ending immediately. Using "exit(int)" doesn’t work.

Is there a way to eliminate the abort dialog, or is there a better termination method?

Source: Windows Questions C++