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 `hfind` as an `_Offset` type, but you incorrectly declared the return type of `CreateFileA` to be a `Long` instead of an `_Offset`. You need to declare it as `CreateFileA%&` so that QB64 knows it returns an _Offset type.