The Visual C++ Programming Tutorials: C++ Exception Handling
| |
|
Exceptions are an error-handling mechanism employed extensively in C++ and several other modern programming languages. It is one of the important topics in any programming because properly implemented exception handling can increase the 'product quality'. Exceptions provide an alternative error-handling mechanism, which gives you three main advantages over traditional return value error handling:
The handler for an exception can occur in the routine in which the exception was thrown. It can also occur in any routine above it in the call stack, and, at run time, each routine in the call stack is checked to see if it implements a suitable handler. If nothing suitable has been found by the time the top of the stack has been reached, the program terminates. In .NET, they can be used across languages. Because exceptions are part of the underlying .NET Framework, it’s possible to throw an exception in C++ code and catch it in Microsoft Visual Basic .NET, something that isn’t possible outside the .NET environment. So, you will find the DLL program example in this Tutorial created in VC++ .NET and then used by Visual Basic .NET. The following list is the topics in this Chapter.
|
Best viewed using FireFox, Chrome etc. Worst viewed using IE of any version
Webmaster contact: [contact[@]visualcplusdotnet.com] Copyright 2019 © Visualcplusdotnet. All rights reserved. Excellent hosting services provided by MochaHost - The Online Central
| About | Disclaimer | Privacy | Site Index & Project Download | Native C | Contact | | |
Custom Search | |
|
|