Hour 13. Working with .NET Error Handling and Diagnostics

   

When you write managed C++ applications with the .NET Framework, error handling is managed by a set of .NET classes. The syntax for exception handling is similar to unmanaged C++. However, the .NET Framework provides a rich set of classes to provide strong exception handling and diagnostic capabilities.

In this hour's lesson, you will learn how to use the .NET Framework's error handling and diagnostics to build applications that handle errors gracefully. Also, for when an unexpected error does occur, you will learn how to display debugging information that will help track down the error.

In this hour you will:

  • Add structured exception handling to an application

  • Add trace statements to an application

  • Use assertion code to test for valid values

  • Display a stack dump when an error occurs

  • Create a custom exception error class


   
Top


Sams Teach Yourself Visual C++. NET in 24 Hours
Sams Teach Yourself Visual C++.NET in 24 Hours
ISBN: 0672323230
EAN: 2147483647
Year: 2002
Pages: 237

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net