Using Structured Exception Handling

SEH is the control of flow syntax that you use to handle exceptions. SEH isn't a new concept to C++ developers, but it's quite different from the unstructured exception handling mechanism used in previous versions of Visual Basic. The idea behind SEH is that you write code to handle specific or nonspecific errors that could occur as a result of user input, resource availability, or a generic problem that might occur in functions you're writing. With SEH, you can write code to handle errors for specific lines of code; you aren't limited to writing an error-handling routine for a complete subprocedure or function as you were in Visual Basic 6.

Note

Error handling that uses the On Error Goto or the On Error Resume ...

Get Sams Teach Yourself Visual Studio® .NET 2003 in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.