Originally shared by Thomas Mueller (dummzeuch)

Originally shared by Thomas Mueller (dummzeuch)

Just in case you are maintaining Delphi code for several older versions of Delphi: Be aware that the declarations of NativeInt and NativeUInt are wrong in some of them. Delphi version SizeOf(Native(U)Int) Win32 SizeOf(Native(U)Int) Win64 6 to 2007 8 ←…
http://blog.dummzeuch.de/2018/09/08/nativeint-nativeuint-type-in-various-delphi-versions/

Comments

  1. Yup Thomas Mueller I have a 5,000 line ifdef to with that sort of thing across versions and different compilers. It takes on a bit more than just native int and the like, but still, it is all quite a mess to deal with. I no longer use longint (and the like) in code, and have gone to using custom types for everything (that are reliable).

    ReplyDelete

Post a Comment