Archived

This topic is now archived and is closed to further replies.

Floating

How to include a build-date into my application?

Recommended Posts

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

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
couldn''t you just touch (eg. update the modification time) the header in the prebuild step? seems a bit inefficient to rebuild everything.

Share this post


Link to post
Share on other sites
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!}

Share this post


Link to post
Share on other sites