visual-studio 有没有人在 Windows 7 上使用 Visual Studio 6 取得成功?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2339536/
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-10-22 11:36:12  来源:igfitidea点击:

Has anyone had success with Visual Studio 6 on Windows 7?

visual-studiovb6windows-7

提问by ajl

VS6 popped off a series of errors before bombing out completely during install on Windows 7. I specifically need to get VB6 functioning on Windows 7. Anyone having any luck?

在 Windows 7 上安装期间,VS6 在完全爆炸之前弹出了一系列错误。我特别需要让 VB6 在 Windows 7 上运行。有人有运气吗?

采纳答案by MarkJ

Folks on the VB6 newsgroup reportthey have managed to get it working on Windows 7.

VB6 新闻组上的人们报告说,他们已经设法让它在 Windows 7 上运行。

There's this step-by-step guideon how to install the IDE on Windows 7 (including 64 bit).

这里有关于如何在 Windows 7(包括 64 位)上安装 IDE的分步指南

If that doesn't work (scrapes barrel) try this old tipabout persuading the install not to install the Java VM? Link is now broken so here is the tip:

如果这不起作用(刮擦桶)试试这个关于说服安装不要安装 Java VM 的老技巧链接现在已损坏,所以这里是提示:

Before trying to install VB6. Create a new file, name it msjava.dll and place it in your windows directory. The file can be zero length. You can then happily install without the prompt to install an old version of Microsoft's flavour of Java. Once you have installed VB6, delete the msjava.dll otherwise windows update will prompt you to update it.

在尝试安装 VB6 之前。创建一个新文件,将其命名为 msjava.dll 并将其放置在您的 windows 目录中。该文件可以是零长度。然后,您可以愉快地安装,而不会提示安装旧版本的 Microsoft 风格的 Java。安装 VB6 后,请删除 msjava.dll,否则 windows update 将提示您更新它。

Or (scrapes hole in barrel) these tipsfrom an article about getting the IDE working on Vista?

或者(刮掉桶中的洞)这些来自一篇关于让 IDE 在 Vista 上工作的文章的技巧

Footnote: if developing with ADO, be aware of this.

脚注:如果使用 ADO 开发,请注意这一点

回答by Jerry Coffin

The only way I've found that works is Windows XP mode (i.e. a virtual machine). Works fine there, but otherwise, not at all.

我发现唯一可行的方法是 Windows XP 模式(即虚拟机)。在那里工作正常,但除此之外,根本没有。

回答by Rick Groszkiewicz

I found ALL the answers in a thread at vbmonster.com. As mentioned above, you CAN install Visual Studio 6 with Service Pack 6 under Windows 7 by following Derek's detailed instructions at fortypoundhead.com.

我在 vbmonster.com 的一个线程中找到了所有答案。如上所述,您可以按照在 fortypoundhead.com 上的 Derek 的详细说明在 Windows 7 下安装带有 Service Pack 6 的 Visual Studio 6。

I had a problem because I needed to install Service Pack 5. I use a third party program that does not work with Service Pack 6. A really smart programmer (GuideX) came up with a great hack to get around the MDAC 2.5 error.

我遇到了一个问题,因为我需要安装 Service Pack 5。我使用了一个不适用于 Service Pack 6 的第三方程序。一个非常聪明的程序员 (GuideX) 想出了一个很好的技巧来解决 MDAC 2.5 错误

回答by Nikolay Milushev

Recently I had to debug an ancient application written in Visual C++ 6.0 on Windows 8.1. Tried different solutions all of them failed, only thisone worked.

最近,我不得不在 Windows 8.1 上调试一个用 Visual C++ 6.0 编写的古老应用程序。尝试了不同的解决方案都失败了,只有这个有效。

This guys made a special installer that allows installing VC++6, VB6, and SP6 on Windows Vista/7/8/8.1/10 without any errors whatsoever.

这家伙制作了一个特殊的安装程序,允许在 Windows Vista/7/8/8.1/10 上安装 VC++6、VB6 和 SP6,而不会出现任何错误。

Hope it would be helpful to someone.

希望它会对某人有所帮助。

回答by Joe Schmoe

Win 7 64 bit service pack 5 & 6. Turn compatability off and it seems to work.

Win 7 64 位服务包 5 和 6。关闭兼容性,它似乎可以工作。

回答by Lord_of_Lucifer

I am using vb6 on windows 7 32 bit system for a long time. you will need to install your vb6 with compatibility of xp2.

我在 windows 7 32 位系统上使用 vb6 很长时间了。您需要安装与 xp2 兼容的 vb6。

Create a 0-byte file in the C:\Windows directory called msjava.dll.

在 C:\Windows 目录中创建一个名为 msjava.dll 的 0 字节文件。

Don't just install via the Autorun executable; instead browse the Visual Studio 6 CD (or folder), right-click Setup.exe and select Run As Administrator.

不要只是通过 Autorun 可执行文件安装;而是浏览 Visual Studio 6 CD(或文件夹),右键单击 Setup.exe 并选择以管理员身份运行。

On any Program Compatibility Assistant warnings, click Run Program.

在任何程序兼容性助手警告中,单击运行程序。

Step through the setup screens until you're able to choose Custom Setup, then click next.

逐步完成设置屏幕,直到您能够选择自定义设置,然后单击下一步。

On the setup options, install the following items and nothing else: Microsoft Visual Basic 6.0

在安装选项上,安装以下项目而不安装其他项目:Microsoft Visual Basic 6.0

ActiveX

ActiveX

Data Access
Graphics

数据访问
图形

Click continue and the process will start, and (hopefully) eventually complete. Skip the installations of the MSDN CD, BackOffice, VSS and SNA Server, and clear the checkbox for "Register Now". Setup should be complete.

单击继续,该过程将开始,并且(希望)最终完成。跳过 MSDN CD、BackOffice、VSS 和 SNA Server 的安装,并清除“立即注册”复选框。设置应该已经完成​​。

Download the VB6 Service Pack 6 from http://www.microsoft.com/downloads/en/confirmation.aspx?FamilyID=A8494EDB-2E89-4676-A16A-5C5477CB9713&displaylang=enand install.

http://www.microsoft.com/downloads/en/confirmation.aspx?FamilyID=A8494EDB-2E89-4676-A16A-5C5477CB9713&displaylang=en下载 VB6 Service Pack 6 并安装。

Change the compatibility settings for Visual Basic (to get it to run a little more smoothly under Windows 7) by browsing to C:\Program Files\Microsoft Visual Studio\VB98, right-clicking the VB6.exe file, and selecting properties.

通过浏览到 C:\Program Files\Microsoft Visual Studio\VB98,右键单击 VB6.exe 文件,然后选择属性,更改 Visual Basic 的兼容性设置(使其在 Windows 7 下运行得更顺畅一些)。

On the Compatibility tab, check the following:
Run this program in compatibility mode for Windows XP (Service Pack 3)

在兼容性选项卡上,检查以下内容:
在 Windows XP (Service Pack 3) 兼容模式下运行此程序

Disable Visual Themes

禁用视觉主题

Disable Desktop Composition

禁用桌面组合

Disable display scaling on high DPI settings

在高 DPI 设置下禁用显示缩放

When you start up the IDE, you may get a notification saying that the color scheme has been changed to Windows 7 Basic, but it will be changed back to Aero once you exit. Everything should be working fine at this point!

当您启动 IDE 时,您可能会收到一条通知,说配色方案已更改为 Windows 7 Basic,但一旦您退出,它将更改回 Aero。此时一切正常!

Note: when you first run your new install vb6 run it with admin rights and with xp2 compatibility so that your exe can run on any system.

注意:当您第一次运行新安装 vb6 时,请使用管理员权限和 xp2 兼容性运行它,以便您的 exe 可以在任何系统上运行。

回答by Jazimov

The word "supported" is used loosely in this thread, potentially leading the unwary reader to the conclusion that Microsoftsupports the VB6 IDE (that is, the integrated development environment) on operating systems beyond Windows XP. This fact clearly is stated in the table that appears on the page at this link: https://blogs.msdn.microsoft.com/nikosan/2012/04/20/support-statement-for-visual-basic-6-0-on-windows-8-updated/

“受支持”一词在此线程中使用得松散,这可能会使粗心的读者得出结论,即Microsoft支持 Windows XP 以外的操作系统上的 VB6 IDE(即集成开发环境)。这一事实在此链接页面上显示的表格中明确说明:https: //blogs.msdn.microsoft.com/nikosan/2012/04/20/support-statement-for-visual-basic-6-0 -on-windows-8-更新/

Note that executables developed using VB6 are in fact compatible with Windows OS's from Windows XP through Windows 10--32/64-bit versions: https://blogs.windows.com/buildingapps/2015/06/22/getting-ready-for-windows-10-sdks-compatibility-bridges/

请注意,使用 VB6 开发的可执行文件实际上与从 Windows XP 到 Windows 10--32/64 位版本的 Windows 操作系统兼容:https://blogs.windows.com/buildingapps/2015/06/22/getting-ready- for-windows-10-sdks-compatibility-bridges/

Anyone using non-standard methods to coax the IDE into working on OS's that Microsoft does not support is exposing themselves/their organizations/their employers to risk and is not suitable for risk-averse organizations.

任何使用非标准方法哄骗 IDE 使用 Microsoft 不支持的操作系统的人都会使自己/他们的组织/他们的雇主面临风险,并且不适合规避风险的组织。

Having said that, I think the purest solution is to install Windows XP onto a virtual machine and run that VM in a modern host OS, such as Windows 10. That works just fine, and you can install directly from the VB6 Setup disc without making any pre-install/post-install customizations.

话虽如此,我认为最纯粹的解决方案是将 Windows XP 安装到虚拟机上,然后在现代主机操作系统(例如 Windows 10)中运行该 VM。这很好用,您可以直接从 VB6 安装光盘安装,而无需制作任何安装前/安装后自定义。

回答by Adam Dempsey

I installed VB6 on Windows 7 Pro without having to use compatibility settings or run as administrator.

我在 Windows 7 Pro 上安装了 VB6,无需使用兼容性设置或以管理员身份运行。

Doesn't really help you, but does show that it can work.

并没有真正帮助你,但确实表明它可以工作。

回答by C-Pound Guru

Several people in my office have installed Visual Studio 6 (without VC++) on Windows 7, both 32-bit and 64-bit with no problems. The one thing we have in common: we've all turned UAC down to it's lowest setting. Nothing else special required.

我办公室的几个人已经在 Windows 7 上安装了 Visual Studio 6(没有 VC++),32 位和 64 位都没有问题。我们有一个共同点:我们都将 UAC 降低到最低设置。没有其他特殊要求。

回答by Booji Boy

I had a Vista x64 box with a working copy of the VB6 IDE (which was supported). I upgraded the OS to Windows 7 x64 and the VB6 IDE still works fine. You could try that. I know, a huge PITA and kludgy but still, it worked for me.

我有一个带有 VB6 IDE 工作副本(受支持)的 Vista x64 框。我将操作系统升级到 Windows 7 x64,VB6 IDE 仍然可以正常工作。你可以试试。我知道,巨大的 PITA 和笨拙但仍然对我有用。