|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Visual Studio .NET 2003
Microsoft C++ supports two kinds of exception handling:
- C++ exception handling (try, throw, catch)
- Structured exception handling (__try/__except, __try/__finally)
Although structured exception handling works with C and C++ source files, it is not specifically designed for C++. For C++ programs, you should use C++ exception handling.
Note For more information on handling exceptions in managed applications (those using Managed Extensions for C++), see Handling Exceptions Using Managed Extensions for C++.