ISpPhraseBuilder::AddElements (Microsoft Speech Platform)

Microsoft Speech Platform SDK 11

Microsoft Speech Platform

ISpPhraseBuilder::AddElements

ISpPhraseBuilder::AddElements adds a copy of the given element to the end of this object's element list.

HRESULT AddElements(
   ULONG                    cElements,
   const SPPHRASEELEMENT   *pElement
);

Parameters

cElements
Specifies the number of phrase elements to add.
pElement
Address of the array of SPPHRASEELEMENT data structures containing the phrase elements to add.

Return values

Value Description
S_OK Function completed successfully.
E_INVALIDARG One or more parameters are invalid.
SPERR_UNINITIALIZED The object has not been properly initialized.
FAILED(hr) Appropriate error message.