SAPI 5.3 linking problem VS2008 on Vista RRS feed

  • Question

  • Hello everybody,
    I just have crossed a linking problem that I am not able to resolve. I am trying to implement SAPI 5.3 TTS using a simple tutorial http://msdn.microsoft.com/en-us/library/ms720165(VS.85).aspx or the SAPI 5.3 tutorial example TTSApp (http://msdn.microsoft.com/en-us/library/ms720410(VS.85).aspx). Everything works fine with MSVS2005 on win XP, but with MSVS2008 on Vista I got the following linking errors:
    error LNK2001: unresolved external symbol _CLSID_SpVoice
    error LNK2001: unresolved external symbol _IID_ISpVoice
    I followed the simple tutorial exactly so the include/Lib directories are added and sapi.lib should be linked.
    Can anyone help me with this infuriating problem that I was not able to dissolve?

    Best regards
    Chaloupka Zdenek
    Tuesday, May 19, 2009 2:42 PM

All replies

  • This forum is specific to Speech Server.  Please go to http://www.microsoft.com/communities/newsgroups/en-us/, locate the "Speech Desktop" newsgroup in the tree at English > Office and Desktop Applications > Speech Desktop, and repost your question there. 
    These postings are provided "AS IS" with no warranties, and confer no rights.
    Wednesday, May 20, 2009 8:08 AM
  • I just have solved it. I defined new CLSID as follows:

    CLSID CLSID_Voice;
    CLSIDFromProgID(L"SAPI.SpVoice", &CLSID_Voice);

    With this new generated CLSID the code works fine!
    Chaloupka Zdenek
    Friday, May 29, 2009 1:12 PM