Exceptions in C++/CLI

 

The articles in this section of the documentation explain exception handling in C++/CLI and how it differs from standard exception handling.

TitleDescription
Basic Concepts in Using Managed ExceptionsDiscusses exception handling in managed applications.
Differences in Exception Handling Behavior Under /CLRDiscusses the differences between standard exception handling and exception handling in C++/CLI.
finallyDescribes the finally block that's used to clean up resources that are left after an exception occurs.
How to: Catch Exceptions in Native Code Thrown from MSILDemonstrates how to use __try and __except to catch exceptions in native code that are thrown from MSIL.
How to: Define and Install a Global Exception HandlerDemonstrates how to capture unhandled exceptions.
.NET Programming with C++/CLI (Visual C++)The top-level article for .NET programming in the Visual C++ documentation.
Show: