ISpTranscript::AppendTranscript (Windows Embedded CE 6.0)
1/6/2010
This method adds the current text to the transcript.
Syntax
HRESULT AppendTranscript(
const WCHAR* pszTranscript
);
Parameters
- pszTranscript
[in] Pointer to the text of the transcript. IfNULL, the current transcript is deleted. Otherwise, the text is appended to the current transcript.
Return Value
The following table shows the possible return values.
Value | Description |
---|---|
S_OK |
Function completed successfully. |
E_INVALIDARG |
pszTranscript is bad or invalid. |
E_OUTOFMEMORY |
Exceeded available memory. |
FAILED(hr) |
Appropriate error message. |
Example
The following code snippet illustrates the use of this method.
HRESULT hr = S_OK;
// Bind a stream to an existing wavefile
hr = SPBindToFile( FILENAME, SPFM_CREATE_ALWAYS, &cpStream);
// Check hr
hr = cpStream.QueryInterface(&cpTranscript);
// Check hr
hr = cpTranscript->AppendTranscript(L"this is a test");
// Check hr
Requirements
Header | sapi.h, sapi.idl |
Library | sapilib.lib |
Windows Embedded CE | Windows CE .NET 4.1 and later |