如何为所有用户注册COM对象 [英] How to Register a COM Object for All Users
问题描述
我使用 regsvr32 MyCOM.dll
为我的应用程序注册我的com对象。这工作正常在我的管理员帐户。如果将用户切换到非管理员,则程序失败。看来,没有为非管理员用户加载COM对象。
I use regsvr32 MyCOM.dll
to register my com object for my application. This works fine under my admin account. if a switch the user to a non admin, the program fails. It seems that the COM object is not loaded for the non admin user. Any ideas on why this might be or a possible solution?
感谢
推荐答案
COM对象需要由管理员用户注册,通常。 (有一些细微之处和例外,我不会进入这里,因为根据你的描述不是发生了什么。)
COM objects need to be registered by an admin user, usually. (There are subtleties and exceptions that I won't get into here, because based on your description that's not what's going on.)
但是,一旦COM对象注册,所有用户应该能够使用它,只要对象已注册适当的权限。
However, once the COM object has been registered, all users should be able to use it provided that the object was registered with appropriate permissions.
这篇关于如何为所有用户注册COM对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!