Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you deal with Visual Basic 6.0 frm and frx files in source control?

Tags:

This is always a pain, no matter what source control system I have used (Visual SourceSafe, CVS, ClearCase, etc.). The binary .frx files always cause a problem when merging Visual Basic forms.

I know...I know...why are you using Visual Basic...because there are lots of legacy applications still written using it and although I hate to admit it, I actually like using it (ducks tomatoes).

like image 445
Andy Slater Avatar asked Nov 26 '08 23:11

Andy Slater


2 Answers

You need to just bite the bullet and include them in version control system. Unfortunately, they do contain information that isn't available anywhere else in the source. (The bitmaps added to ImageList controls, for example.) If you lose those files, you can't rebuild the application correctly.

like image 130
JeffK Avatar answered Jan 03 '23 11:01

JeffK


Frx merges are a major pain. Which I why I recommend if your version control system allows locking, make sure you use it on the frx files to avoid merges. For example, Subversion supports locking to avoid issues with editing bitmaps and other binary files.

With that being said, my company and I have been using Subversion on a Visual Basic 6.0 CAD/CAM project for over five years and only ran into a problem with frx merging a handful of times.

In all cases, it was a simple matter to resolve. Mainly by one person making a backup of his form and resolving the problem by hand via cut and paste. If somebody is doing major work on one of the forms that has a lot of bitmaps, then we make sure we lock it and get that part of the project over as fast as possible.

P.S. Don't apologize for Visual Basic's FRX strangeness. Other packages have the same issue anytime two people edit the same bitmap, WAV or any other type of binary file that software will depend on.

like image 39
RS Conley Avatar answered Jan 03 '23 11:01

RS Conley