Visual Studio 6 Windows 公共控件 6.0 (sp6) Windows 7,64 位 [英] Visual Studio 6 Windows Common Controls 6.0 (sp6) Windows 7, 64 bit

查看:23
本文介绍了Visual Studio 6 Windows 公共控件 6.0 (sp6) Windows 7,64 位的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我被要求帮助某人开发旧版 vb6 应用程序,因此我决定在我的 Windows 7 x64 笔记本电脑上使用 Visual Studio 6 本指南.

I was asked to help work on a legacy vb6 application for someone, so I decided to toss Visual Studio 6 on my Windows 7 x64 laptop following this guide.

它安装得很好,我可以看到除了 Microsoft Windows Common Controls 6.0 (sp6) 之外的一切都正常.Microsoft Windows Common Controls-2 6.0 (sp6)、Microsoft Windows Common Controls 5.0 (sp2) 等都可以正常工作.但是,当我尝试添加 Microsoft Windows Common Controls 6.0 (sp6) 组件时出现错误:

It installed fine, and from I can see everything is working except for Microsoft Windows Common Controls 6.0 (sp6). Microsoft Windows Common Controls-2 6.0 (sp6), Microsoft Windows Common Controls 5.0 (sp2), etc. all work just fine. However, when I try to add the Microsoft Windows Common Controls 6.0 (sp6) component I get the error:

'' could not be loaded

我无法添加图片,因此我已将屏幕截图上传到此处,以供任何想要准确查看的人使用:

I could not add an image, so I have uploaded a screen shot to here for anyone wanting to see it exactly:

我尝试注册/取消注册/重新注册 MXCOMCTL.OCX、MSCOMCT2.OCX、msdatsrc.tlb 均未成功.我还卸载了可能导致 Windows 通用控件出现问题的已知安全更新.我已经删除了 IE11,即使报告指出 IE11 不会像 IE10 那样导致 MSCOMCTL.OCX 出现问题.

I have tried registering/un-registering/re-registering MXCOMCTL.OCX, MSCOMCT2.OCX, msdatsrc.tlb all with no success. I have also uninstalled a known security update that may have caused issues with Windows Common Controls. I have removed IE11, even though reports state IE11 will not cause issues with MSCOMCTL.OCX the way IE10 did.

我在 Windows XP SP3 兼容模式下运行 VB6.EXE.使用禁用视觉主题、禁用桌面合成和禁用高 DPI 设置的显示缩放.以及以管理员身份运行它.

I run VB6.EXE in Windows XP SP3 Compatibility mode. With Disable visual themes, Disable desktop composition, and Disable display scaling on high DPI settings. As well as run it as administrator.

我还尝试打开一个使用此控件的先前项目,但它在加载过程中失败,并出现与屏幕截图中相同的空白"错误,并在生成的错误日志中显示以下内容:

I have also attempted to open a previous project that utilizes this control, and it fails during load with the same "blank" error as in the screen shot with the following in the generated error log:

第 35 行:控件 lvData 的 MSComctlLib.ListView 类不是已加载的控件类.第 223 行:控件 Stat 的 MSComctlLib.StatusBar 类不是已加载的控件类.

Line 35: Class MSComctlLib.ListView of control lvData was not a loaded control class. Line 223: Class MSComctlLib.StatusBar of control Stat was not a loaded control class.

所以这告诉我这不是 .vbp 中的版本问题,就像某些建议的那样(新的空白项目也会发生这种情况).

So that tells me it isn't a version issue within the .vbp like some suggest (as it happens with new, blank projects as well).

我束手无策.显然人们已经让 VB6 和 Windows 7 x64 都能正常工作(使用 Windows 通用控件),但我没有尝试任何方法来缓解我的问题.我希望这里有人可能遇到过这种情况,或者对发生的事情有一些想法.

I am at wits end. Apparently people have gotten both VB6 and Windows 7 x64 to work properly (with Windows Common Controls) but NOTHING I have tried alleviates my problem. I am hoping someone here may have run into this, or have some ideas as to what is going on.

推荐答案

在这里等待回复的想法时,我决定尝试一下.我以管理员身份运行 regedit,导航到 HKEY_CLASSES_ROOTTypeLib 键,然后搜索MSCOMCTL.OCX"...我删除了引用此 .ocx 文件的每个键.

While waiting for a reply for ideas here, I had decided to try something. I ran regedit as administrator, navigated to the HKEY_CLASSES_ROOTTypeLib Key and then did a search for "MSCOMCTL.OCX"... I deleted EVERY key that referenced this .ocx file.

搜索整个注册表,删除我找到的内容后,我以管理员身份运行命令提示符.然后我导航到 C:WindowsSysWOW64 并输入以下命令:

After searching the entire registry, deleting what I found, I ran command prompt as administrator. I then navigated to C:WindowsSysWOW64 and typed the following commands:

regsvr32 MSCOMCTL.OCX
regtlib msdatsrc.tlb

再次注册这两个文件后,一切正常!我在网上搜索了 HOURS 来寻找这个解决方案,但无济于事.碰巧我在这里发布了一个问题后自己修复了它:(即使 Visual Studio 6 已经过时了,希望这仍然可以帮助其他人!

Upon registering these two files again, everything is WORKING! I scoured the web for HOURS looking for this solution to no avail. It just so happens I fixed it myself after posting a question here :( Even though Visual Studio 6 is outdated, hopefully this may still help others!

这篇关于Visual Studio 6 Windows 公共控件 6.0 (sp6) Windows 7,64 位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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