|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Handles exceptions specific to the OLE IDispatch interface, which is a key part of OLE automation.
Like the other exception classes derived from the CException base class, COleDispatchException can be used with the THROW, THROW_LAST, TRY, CATCH, AND_CATCH, and END_CATCH macros.
In general, you should call AfxThrowOleDispatchException to create and throw a COleDispatchException object.