Compartilhar via


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 ATL_NO_VTABLE CMySuppErrClass :
   public CComObjectRootEx<CComSingleThreadModel>,
   public CComCoClass<CMySuppErrClass, &CLSID_MySuppErrClass>,
   public ISupportErrorInfoImpl<&IID_IMySuppErrClass>,
   public IDispatchImpl<IMySuppErrClass, &IID_IMySuppErrClass, &LIBID_NVC_ATL_COMLib, /*wMajor =*/ 1, /*wMinor =*/ 0>

Requirements

Header: atlcom.h

See Also

Other Resources

ISupportErrorInfoImpl Members

ATL Class Overview