ISupportErrorInfoImpl Class
TOC
Collapse the table of content
Expand the table of content

ISupportErrorInfoImpl Class

 

This class provides a default implementation of the 42d33066-36b4-4a5b-aa5d-46682e560f32 and can be used when only a single interface generates errors on an object.

System_CAPS_importantImportant

This class and its members cannot be used in applications that execute in the Windows Runtime.


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

piid

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

Name

Description

ISupportErrorInfoImpl::InterfaceSupportsErrorInfo

Indicates whether the interface identified by riid supports the IErrorInfo interface.

The 42d33066-36b4-4a5b-aa5d-46682e560f32 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>

ISupportErrorInfo

 ISupportErrorInfoImpl

Requirements

Header: atlcom.h

Show:
© 2016 Microsoft