Click here to Skip to main content
15,886,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi everyone!

Looking for a good TTS system, I discovered the Microsoft Speech SDK, currently at version 11.
So I've downloaded and installed it, and after that the redist pack.

In the SDK there is the Microsoft.Speech.dll, which I've imported in VB.NET and used it as is suggested in the manual.

When I try the app, this exception is thrown:

80040154 Class not registered. (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

I tryed so to run Regsvr32.exe and it say "DLL registered", but the error still appearing.

What's wrong?

I'm using Win 7 Home Premium x64 - VB.NET in Visual Studio 2010.
Posted
Updated 2-Jun-12 6:05am
v2

1 solution

Looks like a 32/64 issue.
If you're running a .NET program compiled to 'any processor', it will be jitted into a 64-bit executable at run time (in a 64-bit machine).
It will not be able to load a 32-bit DLL.
Try targeting your program to 32 bits.

Hope this helps,

Pablo.
 
Share this answer
 
Comments
vijay8529 11-Aug-13 2:21am    
I have developed a windows application in Visual studio 2010.....But while executing i am getting error like "class is not registered(exception from hresult)...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900