Can my delphi XE app self-report if it was compiled 32 bit or 64 bit?
Posted on 2014-07-31
I compile a math program for both 32-bit and 64-bit platforms. Both compile to BCD-Math.exe and when I copy them to my desktop I change the names to Math-32.exe and Math-64.exe. More often than not I have two or more instances of either or both executing. When executed both versions look identical and I invariably forget which open app is which. I could extract the file name and add it to the caption but was wondering if there is a way for an application to determine if it was compiled as a 32-bit or 64-bit app?
Its environment's tattle-tale so to speak.
(i.e. when launched, I'd add to the title bar to indicate "32-bit" or "64-bit"