使用CLSID检索组件的COM类工厂 [英] Retrieving the COM class factory for component with CLSID
本文介绍了使用CLSID检索组件的COM类工厂的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在运行一个程序,我将数据保存在Excel文件中。但在运行时我遇到以下错误: -
检索CLSID为{00024500-0000-0000-C000-000000000046}的组件的COM类工厂失败如下错误:80070005。
i am running a program in which i am saving the data in an excel file. But while running it i am facing the following error:-
Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.
推荐答案
您好,
您的错误代码:
HRESULT:0x80070005(2147942405)
名称:E_ACCESSDENIED
描述:访问被拒绝
严重性代码:失败
设施代码:FACILITY_WIN32(7)
错误代码:0x0005(5)
可能的解决方案:
初始化COM安全性。
有用的链接:
CoInitializeSecurity function(COM) [ ^ ]
http://stackoverflow.com/questions/5662382/how-does-the-com-coinitializesecurity-work [ ^ ]
问候,
Maxim。
Hello,
The error code you have:
HRESULT: 0x80070005 (2147942405)
Name: E_ACCESSDENIED
Description: Access is denied
Severity code: Failed
Facility Code: FACILITY_WIN32 (7)
Error Code: 0x0005 (5)
Possible solution:
Initialize COM security.
Helpful links:
CoInitializeSecurity function (COM)[^]
http://stackoverflow.com/questions/5662382/how-does-the-com-coinitializesecurity-work[^]
Regards,
Maxim.
这篇关于使用CLSID检索组件的COM类工厂的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文