I'd like to include the build date of my app in its About box. Unfortunately the About box class is only compiled whenever it is changed, thus the value of __DATE__ that it uses is frozen even as I make changes elsewhere in the app. When the final app is compiled and linked, the About box's OBJ file is always up-to-date, thus the build date is not updated within it.
I could make a preprocessor action that "touches" the About box's source file, thus forcing it to recompile each time, but this About box is used by several different binary projects. I don't want VS to recompile all of my binaries each time I do a batch compile just to update the build date.
Basically I want the build date to be updated anytime a new binary is created and linked, but not otherwise. Does anyone have a suggestion as to how I can achieve this?
P.S. I don't want to use the EXE's file modification date because that changes whenever the file is downloaded, sent via email, etc. I need the build date to stay fixed for maintenance purposes.
I could make a preprocessor action that "touches" the About box's source file, thus forcing it to recompile each time, but this About box is used by several different binary projects. I don't want VS to recompile all of my binaries each time I do a batch compile just to update the build date.
Basically I want the build date to be updated anytime a new binary is created and linked, but not otherwise. Does anyone have a suggestion as to how I can achieve this?
P.S. I don't want to use the EXE's file modification date because that changes whenever the file is downloaded, sent via email, etc. I need the build date to stay fixed for maintenance purposes.