c++ - CComModule 取消注册服务器错误?

标签 c++ com winapi

我有一个 CComModule,它在 DllRegisterServer 上调用 RegisterServer (TRUE),在 DllUnregisterServer 上调用 UnregisterServer (TRUE)。 UnregisterServer 出现 0x8002801C(访问 OLE 注册表时出错。)错误并遗留注册表项。我正在使用启用了 UAC 的 Windows Server 2k8 R2 机器。组件是 x86,我使用的是 32 位 regsrv32。

有谁知道我为什么会收到此错误?

最佳答案

您必须从提升为管理员权限(即禁用 UAC)的命令提示符运行 Regsvr32.exe。在桌面上创建“cmd.exe”的快捷方式,右键单击它并选择“以管理员身份运行”。

关于c++ - CComModule 取消注册服务器错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2067457/

相关文章:

c++ - 在 C++ 中生成字符串的排列

c++ - C++ 中的动态绑定(bind)

c# - 如何处理 COM 互操作中的 var(或 ref)参数?

asp.net - 在客户端计算机上注册 .NET COM DLL 文件

c++ - 硬盘读取的性能问题

C++ Win32 不检索编辑数据,即使编辑在范围内

c++ - SetThreadContext 在 x64 中仅修改 RIP 的最后 32 位

c++ - Boost分离集

windows - COM 服务器 : ESP not saved across a function call when calling interface method

c++ - 复杂的 if 条件