Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Project Versions

Status
Not open for further replies.

Sware

Programmer
Apr 19, 2005
124
US
Perhaps this is an elementary (or dumb) question, but is there a practical way to create more than one copy of a project and keep the copies independent?

Specifically, I used "Save As" with a new name to create a second copy of a project. But, whenever I update forms or code in one copy the changes are also made in the other copy (apparantly because the form names are the same in both copies).
 
Save As" on a project just creates a new VBP file but doesn't make copies of forms, modules, classes, etc. If you want truly independent copies then copy everything to a new directory (or directories if you have references to objects that are not in the same directory as the vbp.)

You could also look at Visual Source Safe (included in Visual Studio Enterprise Edition.) It is intended to allow you to manage different versions of the code.
 
<If you want truly independent copies then copy everything to a new directory
Keep in mind, if you do this, that the copied vbp file will still attempt to reference the files in the old directory. If you want to do this, you'll also have to remove any files in your project and add them in again from the new copy.

Bob
 
BobRodes

Don't think so. If you open the vbp with notepad you'll notice that the various modules use relative referencing. For example

Form=Form2.frm

NOT

Form=C:\myProjectDir\Form2.frm

as long as the various objects are in the same relative directory structure compared to the vbp then it will use them. This means that you need to create new directories at the same level in the directory tree, with the same names so that stuff like

Reference=*\G{00025E01-0000-0000-C000-000000000046}#5.0#0#..\..\Program Files\Common Files\Microsoft Shared\DAO\dao360.dll#Microsoft DAO 3.6 Object Library

gets resolved properly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top