Author Topic: port this dos interrupt to windows api  (Read 2249 times)

0 Members and 1 Guest are viewing this topic.

Offline NOVARSEG

  • Forum Resident
  • Posts: 509
    • View Profile
port this dos interrupt to windows api
« on: October 27, 2020, 11:01:03 pm »
Ok this is a really important dos interrupt!

http://www.ctyme.com/intr/rb-3179.htm

It allows file pointer operations on files up to 2^32 - 2 bytes

 QB64 could in theory handle any dos interrupt

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: port this dos interrupt to windows api
« Reply #1 on: October 28, 2020, 03:12:20 am »
If you need file pointers and such, just use _UNSIGNED _OFFSETs or _INTEGER64.  Then you have access to 2 ^ 64 bytes.  Why limit yourself to 32-bits when you can easily work with 64?

As for the 2^32 file size, you can just use an _UNSIGNED LONG to hold values that large.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!