Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 2.21 KB

exception-handling-cpp-component-extensions.md

File metadata and controls

45 lines (37 loc) · 2.21 KB
title ms.custom ms.date ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
Exception Handling (C++ Component Extensions) | Microsoft Docs
11/04/2016
cpp-windows
language-reference
C++
structured exception handling, managed exceptions
Exception class, managed applications
exception handling
C++ exception handling
exception handling, types of
managed exceptions
System::Exception class in managed applications
ccb11fe8-6938-41ac-b477-a183e85865b9
20
mikeblome
mblome
ghogen

Exception Handling (C++ Component Extensions)

Applications compiled with the /ZW compiler option or /clr compiler option both use exceptions to handle unexpected errors during program execution. The following topics discuss exception handling in either C++/CX or C++/CLI applications.

In This Section

Basic Concepts in Using Managed Exceptions
Describes throwing exceptions and using try/catch blocks.

Differences in Exception Handling Behavior Under /CLR
Discusses the differences from the standard behavior of C++ exception handling.

finally
Discusses how to use the finally keyword.

How to: Define and Install a Global Exception Handler
Demonstrates how unhandled exceptions can be captured.

How to: Catch Exceptions in Native Code Thrown from MSIL
Discusses how to catch CLR and C++ exceptions in native code.

How to: Define and Install a Global Exception Handler
Demonstrates how to catch all unhandled exceptions.

Related Sections

Exception Handling
Describes exception handling in C++.

See Also

Component Extensions for Runtime Platforms