How to include a build-date into my application?

Started by
6 comments, last by Floating 20 years, 6 months ago
Hi, I am using MSVC6 and I would like to display somewhere when the application was built (kind of version info). How can I achieve this? Thanks
Advertisement
__DATE__ and __TIME__
Thanks billybob,

What happens if the part where I have "__DATE__" does not need to be recompiled (but some other part). In that case it will not correspond to the build-date, right?

I have a dll, where should I place "__DATE__" so that at every small modification the date is actualized?
Just do a rebuild-all once you''ve added and tested your changes instead of a regular build.

Ravyne, NYN Interactive Entertainment
[My Site][My School][My Group]

throw table_exception("(? ???)? ? ???");

Maybe any way to specify that a file has always to be built, even if not modified? (MSVC++6)
If you had a header file that was included in every source file - containing global definitions, etc - there might be some way to get it into that.

Superpig
- saving pigs from untimely fates, and when he''s not doing that, runs The Binary Refinery.
Enginuity1 | Enginuity2 | Enginuity3 | Enginuity4
ry. .ibu cy. .abu ry. dy. "sy. .ubu py. .ebu ry. py. .ibu gy." fy. .ibu ny. .ebu

Richard "Superpig" Fine - saving pigs from untimely fates - Microsoft DirectX MVP 2006/2007/2008/2009
"Shaders are not meant to do everything. Of course you can try to use it for everything, but it's like playing football using cabbage." - MickeyMouse

couldn''t you just touch (eg. update the modification time) the header in the prebuild step? seems a bit inefficient to rebuild everything.
Borland''s Free Commandline Tools has a touch.exe command just for that purpose Perhaps you might find it useful




--{You fight like a dairy farmer!}

--{You fight like a dairy farmer!}

This topic is closed to new replies.

Advertisement