MS VC++.NET Version Control Question

Started by
11 comments, last by Hellraisr 20 years, 9 months ago
What does everyone here use for Version Control on their gaming projects? I''ve started using Visual SourceSafe, but I was wondering if maybe there is something out there that is better or more suited to game programming?
Advertisement
cvs?
Well, if you mean like a expiry date for a demo then just do this.

When the program is first executed on the system, create a file that records the system''s data, and that day''s date. Then add fifteen days to that date. Then for every execution do something like this:

if (now >= origdateplus15)
cout<< "Sorry but the demo version is outdated....etc."<else:

//code for the game

That should work but if the person reinstalls the game, you would need a system affecting file, that can write a mark on the system that says that this game is outdated on that computer...

Battleguard


Image by FlamingText.com
Well what I am referring to is interal version control for my own purposes.


By the way, anyone know if there is a way to make VC++.NET automatically track the version number? This was possible in VB6.
I use the Subversion version control system[1] with my own addin - see signature.

[1]subversion.tigris.org


AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]
I''ll have to check it out. What benefits does it give over say SourceSafe?
I must admit I have never tried Sourcesafe. However, reading about it[1][2] does not leave me with a good impression. Even MS'' own "Best Practices"[3] for VSS give a pretty bad impression of the product.

And of course, there are always the rumors that MS themselves don''t use VSS for any major internal products. But then again, I read this on /., so take it with a bucket of salt.

[1]http://www.highprogrammer.com/alan/windev/sourcesafe.html
[2]http://www.michaelbolton.net/testing/VSSDefects.html
[3]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvss/html/vssbest.asp


AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]
hellraisr,

depending on what you''re trying to do in terms of "versioning", you have several options using the .NET framework. i think you''re referring just to your release/build numbers which you can force in VC++.NET by opening up the Solution Properties, look in the Linker folder, and select the General heading. all of your version/build properties are there and i believe "incremental" is set to default.

the other kind of versioning, i''ve never done it using VC++, only C# (my primary langauge). basically it''s when you strongname an assembly or dll and then force other assemblies to use only "keyed" versions of your preference. this eliminates the world of dll hell but is a little tricky the first couple times around. you can read the documentation in VS.NET; it gives a completely detailed explanation of how to do this via the command line or Global Assembly Cache.

hope this helps...

..:: mirirom ::..
..:: mirirom ::..
quote:Original post by Arild Fines
I must admit I have never tried Sourcesafe. However, reading about it[1][2] does not leave me with a good impression. Even MS'' own "Best Practices"[3] for VSS give a pretty bad impression of the product.

And of course, there are always the rumors that MS themselves don''t use VSS for any major internal products. But then again, I read this on /., so take it with a bucket of salt.

[1]http://www.highprogrammer.com/alan/windev/sourcesafe.html
[2]http://www.michaelbolton.net/testing/VSSDefects.html
[3]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvss/html/vssbest.asp


AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.


Do you run the server on Windows, or just a client?
Assuming you are talking about Subversion, and not VSS: I run both on Windows. There are currently three ways to host a Subversion repository:

- The file:// protocol, which requires local file access to the repository files(and Subversion doesn''t play well with shared network drives, so this is essentially a one-man solution).
- svn:// - This is a custom executable using a custom protocol. Up until recently, it didn''t play very well with Windows, since it required fork to be available. It works well in version 0.24 and up, though. svn+ssh:// is the same protocol, only it sets up an SSH tunnel before doing the data transfer.

- http:// - This is a module for Apache 2, mod_dav_svn.so. It communicates with the client using an extension of WebDAV and DeltaV.

I am using the last alternative.
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]

This topic is closed to new replies.

Advertisement