Windows 7不支持DSOfile [英] windows 7 doesn't suppot DSOfile

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

问题描述


我有一个使用Excel文件属性的Windows应用程序.
使用DSOFile.dll.

在Windows 7中运行应用程序时-我们收到以下错误:

Hi,
I have a windows application which uses Excel files attributes.
Using DSOFile.dll.

When running the application in Windows 7 - we get this error:

System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {58968145-CF05-4341-995F-2EE093F6ABA3} failed due to the following error: 80040154.


这意味着注册表丢失DSOFile.OleDocumentProperties

有什么建议吗?

谢谢.


Which means the registry is missing DSOFile.OleDocumentProperties

Any suggestions?

Thanks.

推荐答案

尝试向 regsvr32.exe <注册DLL文件/a> [^ ]

您需要以管理员身份运行它才能注册DLL.
Try to register the DLL file with regsvr32.exe[^]

You need to run it as administrator to register the DLL.


DSOFile是仅32位的.dll.确保将您的应用编译为以x86 CPU为目标,而不是AnyCPU.可以在项目属性"的构建"选项卡中找到.
DSOFile is a 32-bit only .dll. Make sure your app is compiled to target an x86 CPU, not AnyCPU. This can be found in your Project Properties, Build tab.


感谢重播.
我这样注册DLL:
打开运行并输入regsvr32和您要执行的DLL路径吗?

它仍然不起作用
仅在Windows 7中会发生此问题.
在Windows XP计算机上,它可以工作.
Thanks for replaying.
I registered the DLL like that:
Open the run and enter regsvr32 and the DLL path-did you mean doing that?

It still doesn’t work
This problem happens only in windows 7
On windows XP machine- it works file.


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

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