다음을 통해 공유


ISpGramCompBackend::SetSaveObjects (Windows Embedded CE 6.0)

1/6/2010

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.

Syntax

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 Value

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

Header sapiddk.h, sapiddk.idl
Library sapilib.lib
Windows Embedded CE Windows CE .NET 4.1 and later

See Also

Reference

ISpGramCompBackend
SAPI Interfaces