Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ISupportErrorInfoImpl Class 

This class provides a default implementation of the ISupportErrorInfo Interface and can be used when only a single interface generates errors on an object.


template<
   const IID* piid 
>
class ATL_NO_VTABLE ISupportErrorInfoImpl :
   public ISupportErrorInfo

Parameters

piid

A pointer to the IID of an interface that supports IErrorInfo.

The ISupportErrorInfo Interface ensures that error information can be returned to the client. Objects that use IErrorInfo must implement ISupportErrorInfo.

Class ISupportErrorInfoImpl provides a default implementation of ISupportErrorInfo and can be used when only a single interface generates errors on an object. For example:

class CMyClass : 
   public IDispatchImpl< ... >, 
   public CComObjectRoot,
   public CComCoClass< ... >
   public ISupportErrorInfoImpl< &IID_IMyClass >
{
   ...
};

Header: atlcom.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.