Recently I built a game in XNA and in the AssemblyInfo source file I could set AssemblyVersion to x.x.* and it would set the build and revision to the date and time the project was compiled on. I am now doing a project in C++ and I am wondering how I can duplicate that functionality. Both so that the exe file displays that version and a way I can get it programmatically. Thanks.
Share
You can use the
__DATE__and__TIME__macros.