다음을 통해 공유


ISpGramCompBackend::SetSaveObjects (Windows CE 5.0)

Send Feedback

This method sets the storage location of the binary grammar. When the ISpGrammarBuilder::Commit method is called, the grammar compiler back end writes the binary grammar to the stream provided by SetSaveObjects. When SetSaveObjects is called multiple times, the last call made before the call to Commit sets the stream to receive the binary grammar.

HRESULT SetSaveObjects(  IStream* pStream,  ISpErrorLog* pErrorLog);

Parameters

  • pStream
    [in] Pointer to a stream object to receive the binary grammar.
  • pErrorLog
    [in] Pointer to an object implementing ISpErrorLog that receives compilation error message information.

Return Values

The following table shows the possible return values.

Value Description
S_OK Function completed successfully.
E_INVALIDARG Either pStream or pErrorLog is bad or invalid.
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

ISpGramCompBackend | SAPI Interfaces

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.