Click here to Skip to main content
15,889,216 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
hRes = gpIVoiceCommand->Register("",(LPUNKNOWN) gpVCmdNotifySink, IID_IVCmdNotifySink, VCMDRF_ALLMESSAGES, NULL );


It gives failed result to register "voice command object" in voice command project.
Their is not any compilation error.

I am using SAPI4 for this project.
Posted

1 solution

Hi, Not much to go on but it looks like you are casting
gpVCmdNotifySink

which may be valid if it indeed is already a pointer, the easier way may just be to have a Notify object and give it a reference to it. So use
&gVCmdNotifySink


Hope this helps,

Cheers, AT
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900