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

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

问题描述

我被要求帮助某人处理旧版vb6应用程序,因此我决定按照

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公共控件2 6.0(sp6),Microsoft Windows公共控件5.0(sp2)等都可以正常工作.但是,当我尝试添加Microsoft Windows公共控件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_ROOT \ TypeLib密钥,然后搜索"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_ROOT\TypeLib Key and then did a search for "MSCOMCTL.OCX"... I deleted EVERY key that referenced this .ocx file.

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

After searching the entire registry, deleting what I found, I ran command prompt as administrator. I then navigated to C:\Windows\SysWOW64 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天全站免登陆