ISupportErrorInfoImpl

template< const IID* piid >
class 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 >
{
   ...
};

#include <atlcom.h>

Class Members