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>
See Also IErrorInfo and ISupportErrorInfo in the Win32 SDK
ISupportErrorInfo Methods | |
InterfaceSupportsErrorInfo | Indicates whether an interface supports the IErrorInfo interface. |
ISupportErrorInfoImpl Overview
HRESULT InterfaceSupportsErrorInfo( REFIID riid );
See ISupportErrorInfo::InterfaceSupportsErrorInfo in the Win32 SDK.
Remarks
Indicates whether the interface identified by riid supports the IErrorInfo interface.
ISupportErrorInfoImpl Overview | Class Members
See Also IErrorInfo in the Win32 SDK