Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 1.09 KB

tn032-mfc-exception-mechanism.md

File metadata and controls

17 lines (13 loc) · 1.09 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: TN032: MFC Exception Mechanism
TN032: MFC Exception Mechanism
11/04/2016
TN032
MFC, exceptions
CException class [MFC], using
0271f0aa-82cb-47a2-b7ea-e88126fc7e43

TN032: MFC Exception Mechanism

Previous versions of Visual C++ did not support the standard C++ exception mechanism, and MFC provided macros TRY/CATCH/THROW that were used instead. This version of Visual C++ fully supports C++ exceptions. This note covered some of the advanced implementation details of the previous macros including how to automatically cleanup stack based objects. Because C++ exceptions support stack unwinding by default, this technical note is no longer necessary.

Refer to Exceptions: Using MFC Macros and C++ Exceptions for more information on the differences between the MFC macros and the new C++ keywords.

See also

Technical Notes by Number
Technical Notes by Category