Handling exceptions in ActiveX clients

Always make sure that your application handles exceptions gracefully. At minimum, you should display the exception text, which may aid debugging.

Errors in ActiveX proxy execution can be handled as ActiveX exceptions, or inline using a try/catch model similar to the structured exception-handling model in the C++ and Java languages.