如何区分 VB5 和 VB6 项目?

发布于 2024-07-23 08:18:04 字数 182 浏览 6 评论 0原文

我必须维护一些较小的遗留应用程序,其中大多数没有或只有很少的文档。 其中有几个是用 VB5 或 6 编写的,但我不知道是哪一个。 源代码的外观似乎没有太大区别,我可以使用 VB6 加载其中任何一个,甚至可以在 IDE 中运行它们,但我感觉两者中较旧的是 VB5。 有没有一种方法可以通过代码检查来判断项目是在哪个项目中创建的? 或者其他方式。

I have to maintain a number of minor legacy apps and most of them have no or minimal documentation. There are a couple of these which were written either in VB5 or 6, but I can't tell which. There doesn't seem to be big difference in the appearance of the source code, and I can load either one using VB6, and even run them in the IDE, but I have the feeling that the older of the two is VB5. Is there a way to tell by code inspection which one a project was created in? Or some other way.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

叹梦 2024-07-30 08:18:04

VB6 项目的 .VBP 文件将包含如下行:

Retained=0

VB5 项目文件不包含此行。 您可以在 VB5 中加载 VB6 项目文件,但您会收到有关无效“Retained”键的警告。

The .VBP file for a VB6 project will contain a line like this:

Retained=0

VB5 project files do not contain this line. You can load VB6 project files in VB5, but you get a warning about the invalid "Retained" key.

最丧也最甜 2024-07-30 08:18:04

它在项目文件中。

另外,如果您已经安装了两者,那么当您从资源管理器打开项目文件时,它应该启动“VB 选择器”工具,该工具将确定要为该项目打开哪个版本。

It's in the project file.

Also, if you have had both installed, when you OPEN the project file from Explorer, it should start the "VB Selector" tool that will figure out which version to open for that project.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文