有人在 VB6 应用程序和源代码管理方面取得过成功吗?

发布于 11-15 21:14 字数 118 浏览 2 评论 0原文

目前,我正在将 Source Safe 与旧版 VB6 应用程序一起使用,并且我注意到无数次应用程序未使用获取最新版本正确更新文件,或将新文件添加到项目中。我只是认为有人必须有更好的方法来使用 VB6 应用程序的版本控制。

Currently I'm using Source Safe with a legacy VB6 application and I've noticed countless times where the application is not updating the files correctly using the get latest version, or adding new files to a project. I just figure someone has to have a better way of using version control with VB6 applications.

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

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

发布评论

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

评论(5

§对你不离不弃2024-11-22 21:14:54

使用其他东西 - 任何其他东西。三种更流行的免费/开源解决方案是 git、mercurial 和 svn。我怀疑 git 和 Mercurial 是否集成到 VB6 中,但 SVN 确实有集成解决方案 - 您可以在这里找到它: http://svnvb6.tigris.org/

无论如何,我已经习惯了没有将源代码控制集成到我的 IDE 中,因此如果我选择新的解决方案,集成甚至不会成为我决策的一个因素。

Use something else - anything else. The three more popular free/open source solutions are git, mercurial, and svn. I doubt that git and mercurial integrate into VB6 but SVN does have an integration solution - you can find it here: http://svnvb6.tigris.org/

For what it's worth, I have gotten used to not having source code control integrated into my IDE, so integration wouldn't even be a factor in my decision if I were choosing a new solution.

烟若柳尘2024-11-22 21:14:54

我使用 Mercurial 和 VB6/.NET 组合应用程序已有大约一年的时间了。有用。我在 VB6 方面遇到了以下问题,但它们并不是问题:

  1. 如果您在图像等表单上有“资源”,它会将这些资源嵌入到 .frm 文件旁边的并行 .frx 文件中,并且如果您和同事同时进行更改,则无法合并这些 .frx 文件。提供对特定文件类型的锁定的源代码控制可以更好地实现这一点。我们必须做的是(a)接受发生这种情况的少数情况,或者(b)使用某种手动锁定程序:“我正在编辑 frmMain...没有其他人碰它!”

  2. VB6 IDE 在尝试自动更正标识符的大小写时存在一些严重的问题,而且效果不佳。因此,Mercurial 永远会看到文件中的更改,而真正更改的是变量名称的大小写。最糟糕的部分是 IDE 将 Enum 值视为全局变量,因此它将采用 Enum 值的情况并将其应用于代码中具有相同名称的所有变量。

I've been using Mercurial with a combination VB6/.NET application for about a year. It works. I encountered the following problems on the VB6 side, but they're not deal-breakers:

  1. If you have "resources" on a form like an image, it embeds those in a parallel .frx file next to the .frm file, and these .frx files can't be merged if you and a co-worker both make changes at the same time. Source control that offers locking on specific file types would work better for this. What we had to do was either (a) live with the few cases where it happened or (b) use some kind of manual locking procedure: "I'm editing frmMain... nobody else touch it!"

  2. The VB6 IDE has some nasty problems with trying to auto-correct the case of your identifiers, and it doesn't do a good job. Therefore Mercurial is forever seeing changes in a file where all that really changed was the case of a variable name. The worst part is that the IDE treats Enum values as global variables, so it will take the case of your Enum values and apply that to all variables with the same name in your code.

固执像三岁2024-11-22 21:14:54

我会尝试SourceGear Vault。他们集成了 VB6,并且运行得非常好。另外,它对 2 位用户免费。

我尝试过 SVN,但就像 @MarkJ 所说,它会很困难 - SVN 过于依赖合并。您必须将 .frx 文件标记为以独占方式检出,这可能会使它们与 .frm 文件不同步,这将迫使您将 .from 文件以独占方式检出,此时您不妨使默认情况下独占结帐,这削弱了 SVN 的主要优势。

I would give SourceGear Vault a shot. They have VB6 integration and it works pretty darn well. Plus it is free for 2 users.

I've tried SVN, but like @MarkJ says, it'll struggle - SVN relies too much on merging. You'll have to mark .frx files to be exclusively checked out, which then might put them out of sync with .frm files, which will force you place .from files to be exclusively checked out and at that point you might as well make exclusive checkouts the default, which kind of defeats SVN's main strength.

爱格式化2024-11-22 21:14:54

我们从使用 StarTeam 改为使用 Team Foundation Server,它实际上与使用 MSSCCI 提供程序的 VB6 IDE

We switched from using StarTeam to use Team Foundation Server which actually integrates really well with the VB6 IDE using the MSSCCI Provider

一影成城2024-11-22 21:14:54

VSS explorer中尝试设置工具|选项选项卡本地文件设置比较文件依据内容。这可能会稍微减慢 VSS 操作的速度。

In VSS explorer try settings Tools | Options tab Local Files setting Compare files by to Contents. This might slow VSS operations a bit.

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