QB64 Phoenix Edition
CreateFile library error - Printable Version

+- QB64 Phoenix Edition (https://staging.qb64phoenix.com)
+-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://staging.qb64phoenix.com/forumdisplay.php?fid=3)
+---- Forum: Help Me! (https://staging.qb64phoenix.com/forumdisplay.php?fid=10)
+---- Thread: CreateFile library error (/showthread.php?tid=1731)

Pages: 1 2 3


RE: CreateFile library error - SMcNeill - 06-08-2023

(06-08-2023, 03:00 AM)eoredson Wrote: Windows 64-bit applications:

Name/Length/QB64
----------------------
WORD/2 bytes/Integer
DWORD/4 bytes/Long or _offset
HANDLE/8 bytes/_Integer64 or _offset
HFILE/4 bytes/Long

https://www.ibm.com/docs/en/ibm-mq/7.5?topic=platforms-standard-data-types
Notice that on the page you specified, it lists POINTER as 4 bytes for 32-bit applications and 8-bytes for 64-bit applications.   

In QB64 _OFFSET changes size based on the bits of the EXE which you create.  In a 32-bit EXE, _OFFSET is a 4 bytes INTEGER.  In a 64-bit EXE, _OFFSET is an 8-byte INTEGER.