ISpErrorLog::AddError (Windows CE 5.0)
This method adds a compilation error message to the log file. It is called by ISpGrammarCompiler::CompileStream when an error occurs. This method is application-defined.
HRESULT AddError( const long lLineNumber, HRESULT hr, const WCHAR* pszDescription, const WCHAR* pszHelpFile, DWORD dwHelpContext);
Parameters
- lLineNumber
[in] Line number of the compilation error message in the XML grammar file. - hr
[in] Error code (type HRESULT) to log. - pszDescription
[in] Pointer to a text description of the error message. - pszHelpFile
[in] Pointer to the file to contain the log. - dwHelpContext
[in] Flags providing additional information for the log.
Return Values
The following table shows the possible return values. Because this method is application-defined, the return values can change. See specific vendor documentation for details.
Value | Description |
---|---|
S_OK | Function completed successfully. |
FAILED(hr) | Appropriate error message. |
Requirements
OS Versions: Windows CE .NET 4.1 and later.
Header: Sapiddk.h, Sapiddk.idl.
Link Library: Sapilib.lib.
See Also
Send Feedback on this topic to the authors