vb.net 模块 comctl32.ocx 无法在 Windows 10 Home 中加载

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/34158507/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 19:37:53  来源:igfitidea点击:

Module comctl32.ocx failed to load in Windows 10 Home

vb.netregsvr32

提问by Joe

I have an old VB 6 app that someone is trying to install. The user is trying to register Comctl32.ocx. The file is in C:\windows\system32. The user has Windows 10 Home. When trying to register using:

我有一个旧的 VB 6 应用程序,有人试图安装它。用户正在尝试注册 Comctl32.ocx。该文件位于 C:\windows\system32 中。用户拥有 Windows 10 家庭版。尝试使用以下方法注册时:

Regsvr32 c:\windows\system32\comctl32.ocx 

The user gets the message:

用户收到消息:

The module "comctl32.ocx" failed to load. Make sure the binary is stored at the specified path or debug it to check for problems with the binary or dependent .DLL files. The specified module could not be found.

模块“comctl32.ocx”加载失败。确保二进制文件存储在指定路径或调试它以检查二进制文件或相关 .DLL 文件是否存在问题。指定的模块无法找到。

Any ideas what the user can try?

用户可以尝试什么想法?

回答by Marc

See https://support.microsoft.com/en-us/kb/249873

请参阅https://support.microsoft.com/en-us/kb/249873

Basically: You are trying to register from the wrong directory, 32 bit OCx must be in c:\windows\syswow64

基本上:您试图从错误的目录注册,32 位 OCx 必须在 c:\windows\syswow64

Also make sure you execute that command from an elevated command prompt (Admin).

还要确保从提升的命令提示符(管理员)执行该命令。