Export (0) Print
Expand All

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.

Remarks

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 >
{
   ...
};

Requirements

Header: atlcom.h

See Also

Class Members | ATL Class Overview

Show:
© 2014 Microsoft