C file functions in QB64 ??? - 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: C file functions in QB64 ??? (/showthread.php?tid=1644) Pages:
1
2
|
RE: C file functions in QB64 ??? - DSMan195276 - 04-29-2023 (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. It's the sizeand countparameters to fread(), they're a different size. In C they're a size_ttype, 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 _Offsetfor the size_tparameters, that's more or less the same thing. RE: C file functions in QB64 ??? - Kernelpanic - 04-29-2023 @DSMan195276 - Thanks for the explanations. Enlightenment is slowly coming. |