Re: SAPI problem

From: Alan Page [MS] (alanpa_at_online.microsoft.com)
Date: 02/17/04


Date: Mon, 16 Feb 2004 16:33:22 -0800

I'm not a SAPI expert, but I'm trying to find more information for you. My
educated guess is that you don't have a speech recognition engine in your
image. If you're using 4.2, have you included the Windows CE Recognizer or
equivalent 3rd party (or your own) recognition engine in your image?

-- 
Alan Page [MS]
---
This posting is provided "AS IS" with no warranties, and confers no
rights.
"Cancer02" <anonymous@discussions.microsoft.com> wrote in message
news:10b2a01c3f3e5$3e257b50$a401280a@phx.gbl...
> Hi,
> Excuse me, but I have been mistaken when I have exposed
> my problem. The error wasn't in
>
> //********************************************************
> ************
> hr = m_cpRecoCtxt->SetNotifyWindowMessage( hDlg,
> WM_RECOEVENT, 0, 0 );
> //********************************************************
> ************
>
> I rectify:
>
> //********************************************************
> ************
> HRESULT hr = S_OK;
> CComPtr<ISpRecognizer> cpRecoEngine;
> hr = cpRecoEngine.CoCreateInstance
> (CLSID_SpInprocRecognizer);
> //********************************************************
> ************
>
> run right, but
>
> //********************************************************
> ************
> hr = cpRecoEngine->CreateRecoContext(&m_cpRecoCtxt );
> //********************************************************
> ************
>
> fail. In fact, it return hr = -2147200966 (I believe it's
> 0x8004503A in exadecimal).
>
> Do you know how to resolve this problem?
> Can you help me, please !
>