Exception Handling (C++ Component Extensions)
Visual Studio 2012
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.