This method sets up the IErrorInfo interface to provide error information to the client. To call the Error method, your object must implement the ISupportErrorInfo interface.
At a Glance
Header file: | Atlcom.h |
Windows CE versions: | 2.0 and later |
Complete documentation: | Visual C++ documentation |
Syntax
static HRESULT Error( LPCOLESTR lpszDesc,
const IID& iid = GUID_NULL, HRESULT hRes = 0 );
static HRESULT Error( LPCOLESTR lpszDesc,
DWORD dwHelpID, LPCOLESTR lpszHelpFile,
const IID& iid = GUID_NULL, HRESULT hRes = 0 );
static HRESULT Error( LPCSTR lpszDesc, const IID& iid = GUID_NULL,
HRESULT hRes = 0 ); static HRESULT Error( LPCSTR lpszDesc,
DWORD dwHelpID, LPCSTR lpszHelpFile, const IID& iid = GUID_NULL,
HRESULT hRes = 0 ); static HRESULT Error( UINT nID,
const IID& iid = GUID_NULL, HRESULT hRes = 0,
HINSTANCE hInst = _Module.GetResourceInstance( ) );
static HRESULT Error( UINT nID, DWORD dwHelpID,
LPCOLESTR lpszHelpFile, const IID& iid = GUID_NULL,
HRESULT hRes = 0, HINSTANCE hInst = _Module.GetResourceInstance( ) );
See Also