Click to return to the Component Development home page    
IErrorLog Interface     IObjectSafety Interface     Component Interface Refer...    
Web Workshop  |  Component Development

IErrorLog::AddError Method


Logs an error (using an EXCEPINFO structure) in the error log for a named property.

Syntax

HRESULT AddError(
    LPCOLESTR pszPropName, 
    LPEXCEPINFO pExcepInfo
);

Parameters

pszPropName
[in] Address of a string containing the name of the property involved with the error. This cannot be NULL.
pExcepInfo
[in] Address of the caller-initialized EXCEPINFO structure that describes the error to log. This cannot be NULL.

Return Value

Returns one of the following values:

S_OK The error was logged successfully.
E_FAIL There was a problem logging the error.
E_OUTOFMEMORY There was not enough memory to log the error.
E_POINTER The address in pszPropName or pExcepInfo is not valid (such as NULL). The caller must supply both.

Remarks

E_NOTIMPL is not a valid return code because this is the only method for the IErrorLog interface.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.