locked
Problem wrapping SAPI in a DLL RRS feed

  • Question

  • I'm attempting to create a DLL that will wrap the COM  ISpVoice interface so that C applications can convert text to speech. I have downloaded and installed the 5.1 SDK and run the test applications. I also have created a C++ console app that works fine. When trying to create an instance of the ISpVoice interface in my DLL, the call fails with an error of 0x80040154, "Class not registered".

     

    What am I missing?

    Friday, June 8, 2007 2:13 PM

Answers

  • You probably want the SAPI newsgroup: microsoft.public.speech_tech.sdk
    Friday, June 8, 2007 5:02 PM

All replies

  • You probably want the SAPI newsgroup: microsoft.public.speech_tech.sdk
    Friday, June 8, 2007 5:02 PM
  • Actually no I don't. It is not any problem specific to SAPI. It has to do with COM. I have since resolved the issue. It was a timing thing. I had code to register the object in the DllMain() function. This is aparently too early in program initialzation. The code has been moved to later execution and is now working.
    Tuesday, June 12, 2007 3:22 PM