06-05-2023, 10:59 PM
(06-05-2023, 10:35 PM)eoredson Wrote: So if I modify the handle to:
it should work on 64-bit qb64?Code: (Select All)Dim hfind As _Unsigned Long
Erik.
You got it backwards. You correctly declared
hfindas an
_Offsettype, but you incorrectly declared the return type of
CreateFileAto be a
Longinstead of an
_Offset. You need to declare it as
CreateFileA%&so that QB64 knows it returns an _Offset type.