如果我没有 Visual Basic 6.0 并且需要编译 VB6 项目该怎么办?
一位客户希望我对 VB 6.0 应用程序进行一些维护工作(迁移到 .NET 也在酝酿之中),但他没有开发工具,因为他只从原始程序员那里收到了源代码和正在运行的应用程序,谁不再可用。
据我所知,微软不销售Visual Studio 6.0。 如何在没有 VB6 的情况下修改和编译 VB6 应用程序的源代码?或如果 Microsoft 不销售 Visual Studio 6.0,我从哪里获得它?
即使我迁移在不发布新的 VB6 版本的情况下将所有内容都转移到 .NET,我希望能够打开该项目并查看它的编译和运行以更好地理解它。
我有 VS 2005 和 VB 2008。但我知道,如果我尝试打开该项目,代码将转换为 VB.NET,而在更好地了解该项目之前,这不是我想要的。
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.
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?.
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.
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
亚马逊和 eBay 目前都有出售副本(虽然它们看起来有点贵,但这对您的客户来说是转嫁成本,因此由他们决定是否支付这笔费用)。
您可能需要查看 VB.net 的许可证; 它可能允许您运行该软件的早期版本,例如 VB6(当然,您仍然需要获取实际的媒体来安装它)。
MSDN“Visual Studio 2008 Professional with MSDN Professional”有以前版本的 Visual Studio 工具,但价格为 1200 美元,因此,如果您只想要 VB6,eBay 是更好的选择。
请记住,MSDN 包包含所有 Visual Studio 语言以及 VS6 到 VS2008,因此它可能拥有您需要的一切。
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).
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).
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.
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.
我记得 Visual Studio 6.0 可供 MSDN 订阅者使用。
From what I recall the Visual Studio 6.0 is available for MSDN Subscribers.
Hunt Ebay 或 Craigslist。 或者打电话给你的常规软件供应商,我相信他们仍然可以因为这种原因得到它。
Hunt Ebay or Craigslist. Or call your regular software vendor, I'm sure they can still get it for this sort of reason.
Visual Basic 5 控件创建版可能适合帮助您渡过难关,直到您能够掌握一个VB6完整版。 有限制,它是 5 个而不是 6 个,但根据应用程序的范围和复杂性,它可能作为临时措施适合您。
Visual Basic 5 Control Creation Edition might 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 6 的教科书经常包含一个相当可用的 VB 版本(我暂时记不起确切的名称,也许是 VB 6 学生版?),允许编译 .exe 文件。 VB 5 教科书通常捆绑 VB 5 CCE,VB 4 书籍捆绑 VB 4 WM,恕我直言,这些都不是生产 VB 6 应用程序的合适替代品,尤其是它们缺乏创建 .exe 文件的能力。
我想说的是,如果 Visual Studio 2005 (VB 8) 可以很好地转换 VB 6 应用程序,如果这是一个可接受的临时解决方案(可能不会满足大型 .NET 2.0 运行时的要求)。
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.
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).
要了解代码,您可以尝试在 MS Office / VBA 中编译应用程序的部分内容。
当然,这只会提供有限的功能,但可能足以进行一些测试。
To get a feel of the code, you could try to compile parts of the application in MS Office / VBA.
Of course, this will only offer limited functionality, but may suffice for some testing.