How should I prepare my 32-bit Delphi programs for an eventual 64-bit compiler? [duplicate]

First up, a disclaimer: although I work for Embarcadero. I can’t speak for my employer. What I’m about to write is based on my own opinion of how a hypothetical 64-bit Delphi should work, but there may or may not be competing opinions and other foreseen or unforeseen incompatibilities and events that cause alternative design … Read more

File getting copied to SysWOW64 instead of System32

You’ve run afoul of file system redirection. Because %windir%\System32 is reserved exclusively for 64-bit applications, on 64-bit versions of Windows, 32-bit applications that attempt to access the %windir%\System32 directory are automatically and transparent redirected to the 32-bit %windir%\SysWOW64 directory. First, make sure that your program actually does belong in the 64-bit system folder. Windows does … Read more

Range of values in C Int and Long 32 – 64 bits

In C and C++ you have these least requirements (i.e actual implementations can have larger magnitudes) signed char: -2^07+1 to +2^07-1 short: -2^15+1 to +2^15-1 int: -2^15+1 to +2^15-1 long: -2^31+1 to +2^31-1 long long: -2^63+1 to +2^63-1 Now, on particular implementations, you have a variety of bit ranges. The wikipedia article describes this nicely.