I'm trying to enable the voice recognition using VC2008.
I added FS2_VOICER into the preprocessor definition and compile successfully.
But i get a run time error on
voicerec.cpp on Line 94
hr = p_grammarObject->LoadCmdFromResource(NULL, MAKEINTRESOURCEW(command_resource),
L"SRGRAMMAR", MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL),
SPLO_DYNAMIC);
if ( FAILED( hr ) )
{
MessageBox(hWnd,"Failed to load resource\n","Error",MB_OK);
break;
}
I was wondering how you enable voice rec into your stable builds?
I'm compiling branch 3.6.12 rev 6082 and trunk rev 6089.
My environment is W7 using WSDK 7.0 / SAPI 5.4.
I tried using the SAPI (5.1?) that the branch provided and tried VC2005 but i still get the same problem.
I'm pretty sure I'm missing a step somewhere but I don't mind switching to any VS suite in order to get it to work.
Sorry about posted it twice...