Pregunta

I have to cut WMA file from start position to end position. I'm trying to use WMEncoder. I've installed Windows Media Encoder SDK 9 and added a reference to WMEncoder lib for my project. But when I'm trying to create a new instance of WMEncBasicEdit class Visual Studio throws exception 80040154. Where is my fault?

¿Fue útil?

Solución

Error 80040154 indicates that the COM class is not registered. I'm not sure why it wouldn't be registered; this is usually handled by the installer. On my machine, from looking in the registry I can see that class is implemented in the following file:

C:\Windows\System32\wmpencen.dll

Can you see if you have that file installed? If it is, you can try registering it:

regsvr32 C:\Windows\System32\wmpencen.dll

Or rerun the SDK installer (assuming it installs this file) and check for errors.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top