Compartilhar via


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.

Title

Description

Basic Concepts in Using Managed Exceptions

Discusses exception handling in managed applications.

Differences in Exception Handling Behavior Under /CLR

Discusses the differences between standard exception handling and exception handling in C++/CLI.

finally

Describes 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 MSIL

Demonstrates 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 Handler

Demonstrates how to capture unhandled exceptions.

.NET Programming in Visual C++

The top-level article for .NET programming in the Visual C++ documentation.