04-29-2023, 02:16 AM
(04-28-2023, 07:50 PM)Kernelpanic Wrote:Quote:I think I know why you are having a problem, you must be using the 32-bit version of QB64The second version works, also with the 64 bit version.
if that's the case then try the code below
What have you changed? At first glance I don't see it, maybe at second glance.
It's the `size` and `count` parameters to `fread()`, they're a different size. In C they're a `size_t` type, which is a 32-bit integer on 32-bit system and a 64-bit integer on 64-bit system.
If you want to avoid separate definitions then you could use `_Unsigned _Offset` for the `size_t` parameters, that's more or less the same thing.