更新 KB 2687323 后,VB6 IDE 无法加载 MSCOMCTL.OCX [英] VB6 IDE cannot load MSCOMCTL.OCX after update KB 2687323

查看:33
本文介绍了更新 KB 2687323 后,VB6 IDE 无法加载 MSCOMCTL.OCX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Windows 更新安装安全更新 KB2687323 后,我的 VB6 项目无法加载.显示的错误消息是'[project_vbp_path]/MSCOMCTL.OCX' 无法加载--继续加载项目?".注意消息中的路径是vbp文件夹路径,而不是控件的注册路径.

After windows update installed security update KB2687323, my VB6 project fails to load. Displayed error message is "'[project_vbp_path]/MSCOMCTL.OCX' could not be loaded--Continue Loading Project?". Note that the path in the messeage is the vbp file folder path instead of the control's registered path.

详情:

  1. MSCOMCTL.OCX 在通常的 system32 文件夹中注册.
  2. 由完全相同的项目生成的可执行文件,更新前一个小时运行良好并加载更新的 MSCOMCTL.OCX(我已使用 Process Explorer 检查过).

安全更新说明指出 MSCOMCTL.OCX 有一个新的固定版本.所以我检查了升级 ActiveX 控件"复选框的项目属性.我两种方法都试过了;选中和取消选中都无济于事.VB6 IDE 拒绝加载升级后的 OCX.

The security update description states that MSCOMCTL.OCX has a new fixed version. So I checked the project properties for "Upgrade ActiveX Controls" checkbox. I tried it both ways; checked and unchecked to no avail. VB6 IDE refused to load the upgraded OCX.

推荐答案

经过数小时的努力、系统恢复、注册、注销周期和一夜睡眠,我已经设法查明问题所在.事实证明,项目文件包含以下行:

After hours of effort, system restore, register, unregister cycles and a night's sleep I have managed to pinpoint the problem. It turns out that the project file contains the below line:

Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0; MSCOMCTL.OCX

版本信息2.0"似乎是没有加载的原因.在记事本中将其更改为2.1"解决了问题:

The version information "2.0" it seems was the reason of not loading. Changing it to "2.1" in notepad solved the problem:

Object={831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.1#0; MSCOMCTL.OCX

因此,在类似无法加载 OCX"的情况下,一种可能的解决方法是开始一个新项目.将控件放在其中一个表单上,并用记事本检查 vbp 文件以查看它期望的版本.

So in a similar "OCX could not be loaded" situation one possible way of resolution is to start a new project. Put the control on one of the forms and check the vbp file with notepad to see what version it is expecting.

或者更简单的方法:

(我在下面 Bob 的宝贵评论之后添加了此部分)

(I have added this section after Bob's valuable comment below)

您可以在记事本中打开您的 VBP 项目文件,并找到阻止 VB6 将项目自动升级到 2.1 的讨厌行并将其删除:

You can open your VBP project file in Notepad and find the nasty line that is preventing VB6 to upgrade the project automatically to 2.1 and remove it:

NoControlUpgrade=1

这篇关于更新 KB 2687323 后,VB6 IDE 无法加载 MSCOMCTL.OCX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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