
ISupportErrorInfo Example
Once your interface supports ISupportErrorInfo you just add an error string
to the resource and then call AtlReportError when you want to report an
error to the client. If you did everything correctly when VB hits this
error, VB will show a messagebox containing your string resource error
message.
PS: Remember the HINSTANCE parameter to AtlReportError should be
_Module.GetResourceHandle() not GetModuleHandle(NULL)!
Quote:
> There is only one method. Use ATL wizard to generate
> object that supports it. That would be the best example.
> AlexO
> >-----Original Message-----
> >Hi,
> >Could someone possibly point me in the direction of a
> good
> >example of how to use the ISupportErrorInfo interface.
> >Thanks
> >Mike Towers
> >.