You are reading help file online using chmlib.com
|
ISpPhraseBuilder::InitFromPhrase initializes from a phrase.
HRESULT InitFromPhrase(
const SPPHRASE *pSrcPhrase
);
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_INVALIDARG | pSrcPhrase or pSrcPhrase->Rule.pNextSibling is invalid or bad. Alternatively, pSrcPhrase->LangID may be zero or pSrcPhrase->cbSize does not indicate the same size as pSrcPhrase. |
FAILED(hr) | Appropriate error message. |
HRESULT hr;
CComPtr<ISpPhraseBuilder> cpPhraseBuilder;
CComPtr<ISpPhrase> cpPhrase;
SPPHRASE Phrase;
hr = cpPhraseBuilder.CoCreateInstance( CLSID_SpPhraseBuilder );
if (SUCCEEDED(hr))
{
//We initialize the Phrase data structure
}
if (SUCCEEDED(hr))
{
hr = cpPhraseBuilder->InitFromPhrase( &Phrase );
}
You are reading help file online using chmlib.com
|