Windows 2008 R2 上缺少 MSCOMCTL.OCX [英] MSCOMCTL.OCX missing on Windows 2008 R2

查看:49
本文介绍了Windows 2008 R2 上缺少 MSCOMCTL.OCX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将旧版 Visual Basic 应用程序从 Windows 2000 迁移到 Windows 2008 R2,出现错误

Migrating a legacy Visual Basic application from Windows 2000 to Windows 2008 R2, I get the error

组件MSCOMCTL.OCX"或其依赖项之一不正确已注册:文件丢失或无效

Component 'MSCOMCTL.OCX' or one of its dependencies not correctly registered: a file is missing or invalid

安装 VisualBasic6-KB896559-v1-ENU.exe 没有帮助

Installing VisualBasic6-KB896559-v1-ENU.exe didn't help

推荐答案

由于某种原因,安装下载的运行时时 MSCOMCTL.OCX 没有被复制/注册到正确的文件夹 VisualBasic6-KB896559-v1-ENU.来自 KB896559 的 exe https://www.microsoft.com/en-US/download/details.aspx?id=10019.

For some reason MSCOMCTL.OCX didn't get copied / registered to the correct folder when installing the downloaded runtime VisualBasic6-KB896559-v1-ENU.exe from the KB896559 at https://www.microsoft.com/en-US/download/details.aspx?id=10019.

这些手动步骤修复了它:

These manual steps fixed it:

  1. 使用 7-Zip 解压 VisualBasic6-KB896559-v1-ENU.exe(注意:执行此文件不会安装任何东西!)
  2. 将内容复制到 %systemroot%\SysWow64
  3. 从命令行(以管理员身份运行cmd),执行

%systemroot%\SysWoW64\regsvr32.exe %systemroot%\SysWOW64\mscomctl.ocx

%systemroot%\SysWoW64\regsvr32.exe %systemroot%\SysWOW64\mscomctl.ocx

再次尝试运行过时的 Visual Basic 应用程序!

Try running your archaic Visual Basic app again!

这篇关于Windows 2008 R2 上缺少 MSCOMCTL.OCX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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