We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.


The default termination function supplied by MFC.

void AfxAbort( );

AfxAbort is called internally by MFC member functions when there is a fatal error, such as an uncaught exception that cannot be handled. You can call AfxAbort in the rare case when you encounter a catastrophic error from which you cannot recover.

See the example for CATCH.

Header: afx.h