read file > 2 GB
- From: kpg <no@xxxxxxxx>
- Date: Thu, 18 Jan 2007 10:46:11 -0800
hi all,
I need to read a binary file > 2GB. (17GB in this case)
So I'm trying to use the setfilepointer API, which
accepts 64 bit integers.
I could write a function to take my large offset and split it into
high/low 32 bit numbers, but for a quick test I thought I would just
loop (offset/max_long) number of times, moving the file pointer from
the current location each time. (max_long = 2^31) than finally moving
the reaminder. This way I'm staying with 32 bit numbers, and just pass
a null as the high order long (per the documentation).
Well when I pass max_long to the SetFilePointer routine it complains
about overflow, so I'm sure I'm messing up on some of the finer points
of api usage.
Anyone got any large file vb6 api (or non-api) references?
thanks
kpg
.
- Follow-Ups:
- Re: read file > 2 GB
- From: Bob O`Bob
- Re: read file > 2 GB
- Prev by Date: Optimizing CPU usage
- Next by Date: Re: CAD's identification of an element, How do they do that??
- Previous by thread: Optimizing CPU usage
- Next by thread: Re: read file > 2 GB
- Index(es):
Relevant Pages
|