i have meany compilations that each time i done compilation i move it to dyploy dir also i have debug and release versions , im getting lost here . my question is is there any way to promote some global variable by 1 each time im done compiling , maybe also getting the compilation type (debug oe release ) then i like to use this string in code: im using visual studio express 2008

something like :
Code:
std::string ver = VISUAL_STUDIO_MACRO_VERSIONING
if(ver > prev_ver)
{
 ..do something .. 
 like print to log
}