Todd Fiske wrote:
> Rob Kennedy <[EMAIL PROTECTED]> wrote on Mon, 31 Oct 2005 15:30:53
> -0600 (CST):
>> That doesn't mean that Delphi puts accurate values in those fields.
> 
> Delphi does put accurate values in there though. I've been using this for
> the past few years and the dates always match the file dates on my own
> programs. When looking at exes in the Delphi bin folder, I can see when
> many files were compiled (not all have a timestamp), and can see where the
> file times were updated to be the version number for release.

I see. Your program finds the dates in the resource section of the 
program. Not all programs have dates there because not all programs have 
resource sections. I thought you were trying to get the date from the 
TImageFileHeader.TimeDateStamp field, which is where compilers are 
supposed to put the compilation date. For DatedExe.exe, that field holds 
June 19, 1992. All Delphi programs get that date.

If Rainer wanted the compilation date of an arbitrary program, your 
method wouldn't work. But since he wants the date of his own program, it 
will be good.

-- 
Rob
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to