How to include a build-date into my application?
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
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?
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]
Ravyne, NYN Interactive Entertainment
[My Site][My School][My Group]
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
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
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
Popular Topics
Advertisement