Hi Katja, Lionel -
It is a timestamp as you guessed Katja. The value 32FA5ACE you included
results in 2005-07-26 11:22:28 when using code like this:
stime := paramstr(1);
val('$'+stime, ftime, e);
writeln(FormatDateTime('yyyy-mm-dd hh:nn:ss', FileDateToDateTime(ftime)));
I discovered this a few years ago and wrote a program called DatedExe to
extract it and show it, as another answer to the frequent question of how
to get the compile time into the executable. The short answer is that it
has always been there, at least in all Delphi-generated 32-bit PE files. I
wrote that program in D3, I assume this works with programs compiled with
D2 through D7, but probably not D1 or D8 or later.
The program and source can be found on my very old non-updated page at
http://www.mindspring.com/~tfiske/delphi.html.
- Todd
Katja Bergman <[EMAIL PROTECTED]> wrote on Tue, 26 Jul 2005 09:22:07 -0000:
> --- In [email protected], Lionel Johnson
> <[EMAIL PROTECTED]> wrote:
> > Dear Pals,
> >
> > When we compile a Dll or Exe what are the extra contents that are
> > written to it.
> [SNIP]
> > Now when I tried to compare both these Dll's in Beyond compare with
> > the content compare turned on, it shows that there are difference in
> > the content. Why is that so?
> >
> > Note: I have disabled the Include version information in the
> > project.
> >
> > I would really appreciate if any one of you could throw some light
> > on this, its pretty urgent.
> >
> > Regards,
> > Lionel
> Hi,
> I did the same, compiled some code and then compared it. Apparantly
> Delphi seems to add something to the code that could be a timestamp. I
> noticed the value CE5AFA32 in the final binary. And this value seems
> to repeat a couple of times. Looking a bit further in the executable,
> this seems to be related to the resource files that are included in
> the file. Apparantly related to the buttons and string resources.
> Every time when you rebuild your project, this number just seems to
> increase. So I think it's a time-stamp in the index of the
> resourcefile. A timestamp for every resource.
> It's the only difference I could find, though. Keep in mind that this
> number I gave is in Intel-format, so least-significant value first.
> It's actual value would be 0x32FA5ACE... And the last bytes will
> change faster than the first bytes.
> With kind regards,
> X Katja Bergman.
>
> Yahoo! Groups Links
>
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/advanced_delphi/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/