Hard Light Productions Forums

General FreeSpace => FreeSpace & FreeSpace Open Support => Topic started by: Some14U on May 03, 2010, 11:32:03 am

Title: Need help on compiling builds with FS2_VOICER
Post by: Some14U on May 03, 2010, 11:32:03 am
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
Code: [Select]
        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.


Title: Re: Need help on compiling builds with FS2_VOICER
Post by: Jeff Vader on May 03, 2010, 11:34:03 am
You'll notice that I moved your thread to the SCP board (http://www.hard-light.net/forums/index.php?topic=69366.0), since this sounds a lot more hc than what this board is for. Please go there.