AtlReportError

This global function sets up the IErrorInfo interface to provide error information to clients of the object. The string lpszDesc is used as the text description of the error.

At a Glance

Header file: Atlcom.h
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

HRESULT WINAPI AtlReportError( const CLSID& clsid, LPCOLESTR lpszDesc,
const IID&
iid = GUID_NULL, HRESULT hRes = 0 );

HRESULT WINAPI AtlReportError( const CLSID& clsid, LPCOLESTR lpszDesc,
DWORD
dwHelpID, LPCOLESTR lpszHelpFile, const IID& iid = GUID_NULL,
HRESULT
hRes = 0 );

HRESULT WINAPI AtlReportError( const CLSID& clsid, LPCSTR lpszDesc,
const IID&
iid = GUID_NULL, HRESULT hRes = 0 );

HRESULT WINAPI AtlReportError( const CLSID& clsid, LPCSTR lpszDesc,
DWORD
dwHelpID, LPCSTR lpszHelpFile, const IID& iid = GUID_NULL,
HRESULT
hRes = 0 );

HRESULT WINAPI AtlReportError( const CLSID& clsid, UINT nID,
const IID&
iid = GUID_NULL, HRESULT hRes = 0,
HINSTANCE
hInst = _Module.GetResourceInstance( ) );

HRESULT WINAPI AtlReportError( const CLSID& clsid, UINT nID,
DWORD
dwHelpID, LPCOLESTR lpszHelpFile, const IID& iid = GUID_NULL,
HRESULT
hRes = 0, HINSTANCE hInst = _Module.GetResourceInstance( ) );

See Also

ATL Macros and Global Functions