|
You are here:
AxTools
>
CodeSMART 2007 for VB6
>
Documentation
>
User's Guide
>
Error Handling
>
Adding and Removing the Exception Handling Module
|
|
While browsing this page, why not start downloading the evaluation setup kit (direct download, no questions asked).
|
Adding and Removing the Exception Handling Module
To add the Exception Handling module to your projects:
-
Open the project you want to insert the Exception Handling module in.
Make sure that the project is not read-only.
-
Click Add Exception Handling Module in the CodeSMART main menu. A standard
module named MExceptionHandler will be added to your project.
-
You should install the exception filter in your program's starting point (e.g.
in Main or Form_Load) by calling InstallExceptionHandler and uninstall
it when your program is about to exit (usually in Form_Unload) by calling RemoveExceptionHandler.
For a complete understanding of the MExceptionHandler module please read its
documentation page.
To remove the Exception Handling module from your projects:
-
Open the project containing the Exception Handling module. Make sure
that the project is not read-only.
-
In the CodeSMART Project Explorer click the module named MExceptionHandler
and select Remove from the shortcut menu, or press the <Del> key.
-
If applicable, you should manually remove all references to the MExceptionHandler
public members from your code.
See also
Back To Top
|
|