You are reading help file online using chmlib.com
|
ISpRecoContext::GetRecognizer returns a reference to the current recognizer object associated with this context.
HRESULT GetRecognizer(
ISpRecognizer **ppRecognizer
);
Value | Description |
---|---|
S_OK | Function completed successfully. |
E_POINTER | Invalid pointer. |
FAILED (hr) | Appropriate error message. |
The following code snippet illustrates the use of ISpRecoContext::GetRecognizer with a shared context
HRESULT hr = S_OK;
// create a shared recognition context
hr = cpRecoContext.CoCreateInstance(CLSID_SpSharedRecoContext);
// Check hr
// get a reference to the associated recognizer
hr = cpRecoContext->GetRecognizer(&cpRecognizer);
// Check hr
// assert that our shared context has a shared recognizer
hr = cpRecognizer->IsSharedInstance();
// Check that hr == S_OK
You are reading help file online using chmlib.com
|