如何区分 VB5 和 VB6 项目?
我必须维护一些较小的遗留应用程序,其中大多数没有或只有很少的文档。 其中有几个是用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
VB6 项目的 .VBP 文件将包含如下行:
VB5 项目文件不包含此行。 您可以在 VB5 中加载 VB6 项目文件,但您会收到有关无效“Retained”键的警告。
The .VBP file for a VB6 project will contain a line like this:
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.
它在项目文件中。
另外,如果您已经安装了两者,那么当您从资源管理器打开项目文件时,它应该启动“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.