CoCreateInstance仅在Windows 7上返回0x80070005访问被拒绝 [英] CoCreateInstance returns 0x80070005 access denied on Windows 7 only

查看:147
本文介绍了CoCreateInstance仅在Windows 7上返回0x80070005访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我们在VS 6(C ++)中写了一个应用程序,我们暂时无法重写。 安装在Windows XP和Windows 2003 Server上时工作正常,但在Windows 7上,它在尝试创建解决方案的
a COM对象时失败。

We have an application written way back in VS 6 (C++) days that we are not in a position to rewrite just yet.  It is working fine when installed on Windows XP and Windows 2003 Server, but on Windows 7 it fails at the point of attempting to create a COM object that is part of the solution.

我们似乎无法弄清楚Windows 7中导致访问被拒绝的问题以及如何解决它(或者更好地诊断该问题)。 我们发现了一些关于允许DCOM完全控制"每个人"的文章。 尝试这个没有
帮助。 我们已尝试将应用程序作为"以管理员身份运行"运行没有运气。

We can't seem to figure out what in Windows 7 is causing the access denied issue and how to resolve it (or better diagnose for that matter).  We found some articles regarding allowing DCOM to have full control for "everyone".  Trying this has not helped.  We have tried running the application as "Run as Administrator" with no luck.

任何人都有任何想法吗?

Anyone have any ideas?

我最初在technet论坛发帖,建议发布在这里...

I did originally post in the technet forum and it was suggested to post here...

推荐答案

它是什么类型的COM对象?  描述它。  另外: 您有源代码吗?   COM对象在构造期间是否尝试读取/写入注册表或硬盘的受保护区域?
What kind of COM object is it?  Describe it.  Also:  Do you have the source code?  Does the COM object try to read/write protected areas of the registry or hard disk during construction?


这篇关于CoCreateInstance仅在Windows 7上返回0x80070005访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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