06-06-2023, 03:15 AM
(06-06-2023, 01:34 AM)eoredson Wrote: That helps and is a real pita because:That's note quite right,
32-bit = Long/_Unsigned Long
64-bit = _Integer64/_Offset
never seemed clear to me because of the function declaration is CreateFile%& as well..
Erik.
_Offsetis not the same thing as
_Integer64.
_Offsetis special, it is 32-bits wide on 32-bit QB64, and 64-bits wide on 64-bit QB64. It is a different size depending on the version used, which is also why you need to use it to represent types like
HANDLEwhich also differ in size in C++ depending on the platform. To make cross-platform programs you have to use
_Offsetto represent C++ types like pointers which are a different size on different platforms.