Visual C++ 6.0 Source Control Settings
To improve how Visual C++ 6.0 and Code Co-op work together, you can modify
Visual C++ 6.0's's Source Control options. In Visual C++ 6.0, click on the Tools menu and select Options. In the Options dialog, click on Source Control tab. You'll see several options.
Here are our recommendations for Visual C++ 6.0 Source Control options:
- Check "Check out source file(s) when edited" Since Code
Co-op works without a server, you don't need to be connected to a network to
check out files. You can always check out your files, because you always have
them with you.
- Uncheck "Check in files when closing the workspace" You'll
likely want more control over when you check in files, since checking in will
make your changes visible to other project members. An exception would be if
you're the only member of a project and you want to checkpoint your work in
Code Co-op every time you close the solution.
Putting Visual C++ 6.0 Workspaces and Projects under version control
If you have an existing Visual C++ 6.0 Workspace, here's how to
associate it with a Code Co-op project.
Let's say the workspace file for your project is in c:\work\projects\KillerApp\KillerApp.dsw
- In Code Co-op, create a new project (via the Project menu). For the project location ("Where to find or create the project"), enter a the directory that contains the workspace file. In our case, that would be c:\work\projects\KillerApp
- You can choose any directory along the path (e.g. c:\work\projects or c:\work would also be acceptable), depending on how many directories you want your Code Co-op project to cover. Note that in this version of Code Co-op,
projects cannot overlap.
- Enter the rest of the information in the New Project dialog and click OK.
- Code Co-op will offer to add selected project files to the project. Since
we'll let Visual C++ 6.0 add the files for us, click Cancel. You've now
created a Code Co-op project that has no checked in files.
- Open the workspace in Visual C++ 6.0 (an easy way to do this within Code Co-op is to right click on the .dsw file and select Open with Shell.
- In the Visual C++ 6.0 Workspace window (press Alt-0 if you don't see it), right click on the top
Workspace item and select Add to Source
Control. Visual C++ 6.0 adds the workspace file to the Code Co-op
project.
- Still in Visual C++ 6.0, again in the Workspace window, right click on each
project item and select Add to Source
Control. Visual C++ 6.0 adds the project files to the Code Co-op
project.
- Close the workspace in Visual C++ 6.0.
-
In Code Co-op, click on the Check In Area tab and you'll see all
the newly added files. Click on the All menu menu item and select Check In. Enter a comment (e.g. First versions), and click OK. All
workspace and project files are now checked in to the Code Co-op project.
Your Visual C++ 6.0 workspace is now fully integrated with your Code Co-op
project. You can open the workspace in Visual C++ 6.0 and get to work.
Putting additional Visual C++ 6.0 projects under version control
After your Visual C++ 6.0 workspace is under version control, you might add
new Visual C++ 6.0 projects to your workspace. To add these projects to your Code Co-op
project, it's simplest to let Visual C++ 6.0 add it for you. And to make it
easy to see which files are being added and changed, it's best not to have other
files in the project checked out when you are adding a new project to version
control.
- In Visual C++ 6.0, open your workspace and in the workspace window right
click on the project you want to add to source control. Select Add to Source
Control. Visual C++ 6.0 adds the project files to the Code Co-op
project.
- Now close the workspace in Visual C++ 6.0.
- In Code Co-op, click on the Check In Area tab and you'll see all
the newly added files. Select the Click on the All menu menu item and
select Check In. Enter a comment (e.g. New sub-project), and click
OK. The files are now checked in to the Code Co-op project.
Your new Visual C++ 6.0 project is now fully integrated with your Code
Co-op project. You can open the workspace in Visual C++ 6.0 and get to work.
Putting a new Visual C++ 6.0 Workspace under version control
If you are going to create a new Visual C++ 6.0 Workspace, here's how
to associate it with a Code Co-op project.
Let's say you plan to create your new Visual C++ 6.0 Workspace in the
directory c:\work\projects\NextApp
- If you don't already have a Code Co-op project that covers c:\work\projects\NextApp, create one (via the Project menu). For the
project location ("Where to find or create the project"), enter a the
directory that will contain the workspace file. Note, in our case, that would be c:\work\projects\NextApp
- You can choose any directory along the path (e.g. c:\work\projects or c:\work would also be acceptable), depending on how many directories you
want your Code Co-op project to cover. Note that in this version of Code Co-op,
projects cannot overlap.
- Enter the rest of the information in the New Project dialog and click OK.
- Code Co-op will offer to add selected project files to the project. Since
we'll let Visual C++ 6.0 add the files for us, click Cancel. You've now
created a Code Co-op project that has no checked in files.
- In Visual C++ 6.0 create a new Workspace, and enter the location you selected above (e.g. c:\work\projects\NextApp ). When Visual C++ 6.0 creates your workspace and project, it will ask you if you want to put the newly created project under source code control. Click Yes.
- Visual C++ 6.0 will show you the files it will add. Click OK.
- Now close the workspace in Visual C++ 6.0
- In Code Co-op, click on the Check In Area tab and you'll see all the newly added files. Click on the All menu menu item and select Check In. Enter a comment (e.g. First versions), and click OK. All solution files are now checked in to the Code Co-op project.
Your Visual C++ 6.0 workspace is now fully integrated with your Code Co-op
project. You can open the workspace in Visual C++ 6.0 and get to work.