visual-studio 如果我没有 Visual Basic 6.0 并且需要编译 VB6 项目怎么办?

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

What to do if I don't have Visual Basic 6.0 and need to compile a VB6 project?

visual-studiovb6devtools

提问by Sergio Acosta

A client wants me to do some maintenance work to a VB 6.0 application (migration to .NET is also in the pipeline), but he doesn't have the development tools because he received just the source code and running application from the original programmer, who is no longer available.

一位客户希望我为 VB 6.0 应用程序做一些维护工作(迁移到 .NET 也在进行中),但他没有开发工具,因为他只收到原始程序员的源代码和运行应用程序,谁不再可用。

Microsoft doesn't sell Visual Studio 6.0, as far as I know. How can I modify and compile the source code for a VB6 application without VB6?or Where do I get Visual Studio 6.0 if Microsoft is not selling it?.

据我所知,Microsoft 不销售 Visual Studio 6.0。如何在没有 VB6 的情况下修改和编译 VB6 应用程序的源代码?或者如果 Microsoft 不出售 Visual Studio 6.0,我从哪里获得它?。

Even if I migrate everything to .NET without releasing a new VB6 version, I would like to be able to open the project and see it compile and run to better understand it.

即使我在不​​发布新的 VB6 版本的情况下将所有内容迁移到 .NET,我也希望能够打开该项目并查看它的编译和运行情况,以便更好地理解它。

I have VS 2005 and VB 2008. But I understand that if I try to open the project the code will be converted to VB.NET and that's not what I would want before getting to know the project better.

我有 VS 2005 和 VB 2008。但我明白,如果我尝试打开项目,代码将转换为 VB.NET,这不是我在更好地了解项目之前想要的。

回答by LizB

From what I recall the Visual Studio 6.0 is available for MSDN Subscribers.

我记得 Visual Studio 6.0 可用于 MSDN 订阅者。

回答by Rob

Visual Basic 5 Control Creation Editionmight be suitable to tide you over until you can get hold of a full version of VB6. There are limitations and it is 5 not 6, but depending on the scope and complexity of the application it might work for you as an interim measure.

Visual Basic 5 Control Creation Edition可能适合帮助您渡过难关,直到您获得完整版的 VB6。有一些限制,它是 5 个而不是 6 个,但根据应用程序的范围和复杂性,它可能适合您作为临时措施。

回答by coderGeek

Many textbooks on Visual Basic 6 frequently included a fairly usable version if VB (I can't recall the exact name offhand, perhaps VB 6 student edition?) that allowed the compiling of .exe files. VB 5 textbooks usually bundled VB 5 CCE, VB 4 books bundled VB 4 WM, neither of these are suitable replacements for a production VB 6 app IMHO, especially their lack of ability to create .exe files.

许多关于 Visual Basic 6 的教科书经常包含一个相当可用的 VB 版本(我不记得确切的名称,也许是 VB 6 学生版?),它允许编译 .exe 文件。VB 5 教科书通常捆绑了 VB 5 CCE,VB 4 书捆绑了 VB 4 WM,这些都不是生产 VB 6 应用程序恕我直言的合适替代品,尤其是它们缺乏创建 .exe 文件的能力。

I will say, Visual Studio 2005 (VB 8) converted VB 6 apps quite well if that's an acceptable interim solution (which it may not be given the requirement for the large .NET 2.0 runtimes).

我会说,Visual Studio 2005 (VB 8) 可以很好地转换 VB 6 应用程序,如果这是一个可接受的临时解决方案(它可能不满足大型 .NET 2.0 运行时的要求)。

回答by Roel

Hunt Ebay or Craigslist. Or call your regular software vendor, I'm sure they can still get it for this sort of reason.

寻找 Ebay 或 Craigslist。或者打电话给你的常规软件供应商,我相信他们仍然可以因为这种原因得到它。

回答by Nescio

To get a feel of the code, you could try to compile parts of the application in MS Office / VBA.

要了解代码,您可以尝试在 MS Office / VBA 中编译应用程序的部分内容。

Of course, this will only offer limited functionality, but may suffice for some testing.

当然,这只会提供有限的功能,但可能足以进行某些测试。

回答by paxdiablo

Both Amazon and eBay currently have copies for sale (although they seem a tad expensive but this would be a pass-through cost to your customer so it's up to them whether they pay this).

Amazon 和 eBay 目前都有出售副本(虽然它们看起来有点贵,但这将是您客户的转嫁成本,因此他们是否支付这笔费用取决于他们)。

You may want to check out the licence for VB.net; it may allow you to run previous versions of the software, such as VB6 (though you'd still have to source the actual media to install it, of course).

您可能需要查看 VB.net 的许可证;它可能允许您运行该软件的早期版本,例如 VB6(当然,您仍然需要获取实际媒体来安装它)。

The MSDN "Visual Studio 2008 Professional with MSDN Professional" has previous version of Visual Studio tools but it comes in at USD1200 so, if you just want VB6, eBay is the better option.

MSDN“Visual Studio 2008 Professional with MSDN Professional”有早期版本的 Visual Studio 工具,但价格为 1200 美元,因此,如果您只想要 VB6,eBay 是更好的选择。

Keep in mind that MSDN pack has all the Visual Studio languages and VS6 through to VS2008 so it's probably got everything you need.

请记住,MSDN 包包含所有 Visual Studio 语言和 VS6 到 VS2008,因此它可能拥有您需要的一切。