COMException未处理 [英] COMException was unhandle

查看:275
本文介绍了COMException未处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用的代码是

i am using the code is

SpeechVoiceSpeakFlags my_Spflag = SpeechVoiceSpeakFlags.SVSFlagsAsync; 
SpVoice my_Voice = new SpVoice();  
my_Voice.Speak(textBox1.Text, my_Spflag);
my_Voice.Volume = 5;
my_Voice.Rate = 2;



由于以下错误,检索具有CLSID {96749377-3391-11D2-9EE3-00C04F797396}的组件的COM类工厂失败:80040154.

这是我的例外

行是SpVoice my_voice = new SpVoice();

任何人请帮助处理此项目中的COMException
请紧急处理



Retrieving the COM class factory for component with CLSID {96749377-3391-11D2-9EE3-00C04F797396} failed due to the following error: 80040154.

This is my Exception

line was SpVoice my_voice =new SpVoice();

anyone please help to handle the COMException in this project
please it''s urgent

推荐答案

此错误表示包含COM库的DLL未在您的系统上注册.使用regsvr32进行注册.
This error means that the DLL containing the COM library is not registered on your system. Use regsvr32 to register it.


这篇关于COMException未处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆