regsvr32 未能在 clsid 下创建条目 [英] regsvr32 failed to create an entry under clsid
问题描述
我有一个 VC++ dll,我想使用 regsvr32.exe
在我的 32 位 Windows 7 机器上注册它,但是我遇到了一些问题.
I have a VC++ dll, which I want to register on my 32-bit Windows 7 machine using regsvr32.exe
, however I have some problems with this.
当我用regsvr32.exe
注册我的DLL时,显示注册成功,但是当我检查regedit
中的条目时,Computer中没有条目\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID
.
When I register my DLL with regsvr32.exe
, it shows registration successful, but when I check the entries in regedit
, there is no entry in Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID
.
Computer\HKEY_LOCAL_MACHINE\TypeLib
中只有一个条目,项目中提到了guid
.
There is only one entry in Computer\HKEY_LOCAL_MACHINE\TypeLib
with the guid
mentioned in the project.
有人可以帮我吗?
推荐答案
您是否在管理员命令提示符下运行?如果没有,那么注册可能会成功,但它实际上正在虚拟化到您的用户区域.查看 虚拟化文章,您可能会在那里看到 CLSID.如果您从管理员命令提示符运行,那么它应该出现在正确的位置.
Are you running in an administrator command prompt? If not then the registration may be successful, but it's actually being virtualised to your user area. Have a look in the locations mentioned in the virtualization article and you may see the CLSID there. If you run from an administrator command prompt then it should appear in the right place.
这篇关于regsvr32 未能在 clsid 下创建条目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!