Click here to Skip to main content
15,886,137 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC++ sdi Pin
Prakash Nadar5-Jan-06 1:09
Prakash Nadar5-Jan-06 1:09 
GeneralRe: VC++ sdi Pin
bruno9579575-Jan-06 1:16
bruno9579575-Jan-06 1:16 
GeneralRe: VC++ sdi Pin
Prakash Nadar5-Jan-06 1:19
Prakash Nadar5-Jan-06 1:19 
GeneralRe: VC++ sdi Pin
Owner drawn5-Jan-06 1:39
Owner drawn5-Jan-06 1:39 
GeneralRe: VC++ sdi Pin
bruno9579575-Jan-06 1:42
bruno9579575-Jan-06 1:42 
GeneralRe: VC++ sdi Pin
Prakash Nadar5-Jan-06 16:58
Prakash Nadar5-Jan-06 16:58 
GeneralRe: VC++ sdi Pin
David Crow5-Jan-06 3:05
David Crow5-Jan-06 3:05 
QuestionMicrosoft Speech API problem Pin
Haraheta4-Jan-06 21:54
Haraheta4-Jan-06 21:54 
void ExecuteCommand(ISpPhrase *pPhrase, HWND hWnd)
{
SPPHRASE *pElements;

if(SUCCEEDED(pPhrase->GetPhrase(&pElements)))
{
switch(pElements->Rule.ulId)
{
case VID_Trigger:
{
switch(pElements->pProperties->vValue.ulVal) //here
{
case VID_Read:
PostMessage(hWnd, WM_READ, NULL, NULL);
break;
}
}
break;
}
//free pElements
::CoTaskMemFree(pElements);
}
}

pPhrase is the result of an SPEI_RECOGNITION event.

ExecuteCommand(event.RecoResult(), hWnd);

For some reason, pPhrase isn't passing a value to pElements, but it passes the Rule ID. I tested the grammar with the grammar compiler provided in the Speech SDK, and it appears to be alright.

Grammar file-
<GRAMMAR LANGID="409">
<DEFINE>
<ID NAME="VID_Read" VAL="1" />
<ID NAME="VID_Trigger" VAL="253" />
<ID NAME="VID_Action" VAL="254" />
</DEFINE>
<RULE ID="VID_Trigger" TOPLEVEL="ACTIVE">
<P>
<L>
<P>I'd like to</P>
<P>I want to</P>
</L>
</P>
<RULEREF REFID="VID_Action" />
</RULE>
<RULE ID="VID_Action">
<L PROPID="VID_Action">
<P VAL="VID_Read">read</P>
</L>
</RULE>
</GRAMMAR>


maybe I'm adding my grammar as a resource the wrong way, I'm not sure (compiled, added the .cfg as a custom resource of type SRGRAMMAR)

anyone know what i'm missing here?

-- modified at 3:57 Thursday 5th January, 2006
QuestionWhere do one use function ? Pin
vikas amin4-Jan-06 21:40
vikas amin4-Jan-06 21:40 
AnswerRe: Where do one use function ? Pin
Owner drawn4-Jan-06 21:51
Owner drawn4-Jan-06 21:51 
AnswerRe: Where do one use function ? Pin
Prakash Nadar4-Jan-06 21:51
Prakash Nadar4-Jan-06 21:51 
GeneralRe: Where do one use function ? Pin
vikas amin4-Jan-06 23:14
vikas amin4-Jan-06 23:14 
GeneralRe: Where do one use function ? Pin
Prakash Nadar4-Jan-06 23:24
Prakash Nadar4-Jan-06 23:24 
GeneralRe: Where do one use function ? Pin
vikas amin4-Jan-06 23:57
vikas amin4-Jan-06 23:57 
QuestionDebug Vs Release Pin
<color>Aljechin 4-Jan-06 21:37
<color>Aljechin 4-Jan-06 21:37 
AnswerRe: Debug Vs Release Pin
Eytukan4-Jan-06 21:43
Eytukan4-Jan-06 21:43 
GeneralRe: Debug Vs Release Pin
<color>Aljechin 4-Jan-06 23:34
<color>Aljechin 4-Jan-06 23:34 
GeneralRe: Debug Vs Release Pin
Anilkumar K V5-Jan-06 0:44
Anilkumar K V5-Jan-06 0:44 
GeneralRe: Debug Vs Release Pin
Eytukan5-Jan-06 0:55
Eytukan5-Jan-06 0:55 
GeneralRe: Debug Vs Release Pin
ThatsAlok8-Jan-06 19:01
ThatsAlok8-Jan-06 19:01 
GeneralRe: Debug Vs Release Pin
Eytukan8-Jan-06 20:21
Eytukan8-Jan-06 20:21 
GeneralRe: Debug Vs Release Pin
Eytukan24-Jan-06 21:18
Eytukan24-Jan-06 21:18 
GeneralRe: Debug Vs Release Pin
S Douglas5-Jan-06 1:11
professionalS Douglas5-Jan-06 1:11 
GeneralRe: Debug Vs Release Pin
Stephen Hewitt9-Jan-06 2:23
Stephen Hewitt9-Jan-06 2:23 
QuestionUsing a DLL having its own DialogProcedure Pin
torbeli4-Jan-06 21:34
torbeli4-Jan-06 21:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.