Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. At wits end: SAPI + Qt = Fail
Forum Updated to NodeBB v4.3 + New Features

At wits end: SAPI + Qt = Fail

Scheduled Pinned Locked Moved 3rd Party Software
1 Posts 1 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    w32stux
    wrote on last edited by
    #1

    Hey guys,

    I have implemented a speech recognizer in a clean Visual Studio program's main function. It works perfectly.

    However, when I copied this code over to my project running Qt, and started implementing it as a QObject, it started spitting out error messages on the line:

    @hr = SpGetDefaultTokenFromCategoryId(SPCAT_AUDIOIN, &cpObjectToken);
    //hr == -2147200966 == SPERR_NOT_FOUND@

    More specifically, stepping into SpGetDefaulttokenFromCategoryId, it fails on this function call:

    @WCHAR * pszTokenId;
    hr = cpCategory->GetDefaultTokenId(&pszToken);
    //hr == -2147200966 == SPERR_NOT_FOUND@

    This is compiling fine, and calls a bunch of initializing functions (which return S_OK) before it reaches this line.

    I have asked this question on #qt, #winapi, MSDN forums, directly to Microsoft Researchers and now I'm here. Hopefully someone might know?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved