Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C file functions in QB64 ???
#11
(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 QB64
if that's the case then try the code below
The second version works, also with the 64 bit version.

What have you changed? At first glance I don't see it, maybe at second glance.

[Image: Aufruf-C-Funktionen-V2.jpg]

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.
Reply


Messages In This Thread
C file functions in QB64 ??? - by Jack - 04-26-2023, 11:00 AM
RE: C file functions in QB64 ??? - by Jack - 04-26-2023, 11:34 AM
RE: C file functions in QB64 ??? - by DSMan195276 - 04-26-2023, 01:16 PM
RE: C file functions in QB64 ??? - by Petr - 04-26-2023, 01:25 PM
RE: C file functions in QB64 ??? - by Jack - 04-26-2023, 02:25 PM
RE: C file functions in QB64 ??? - by Kernelpanic - 04-28-2023, 05:02 PM
RE: C file functions in QB64 ??? - by Jack - 04-28-2023, 05:51 PM
RE: C file functions in QB64 ??? - by Jack - 04-28-2023, 06:50 PM
RE: C file functions in QB64 ??? - by Ultraman - 04-28-2023, 07:04 PM
RE: C file functions in QB64 ??? - by Kernelpanic - 04-28-2023, 07:50 PM
RE: C file functions in QB64 ??? - by DSMan195276 - 04-29-2023, 02:16 AM
RE: C file functions in QB64 ??? - by Kernelpanic - 04-29-2023, 06:58 PM



Users browsing this thread: 7 Guest(s)