Solved

Handling large files in VB6

Posted on 2004-04-07
6
925 Views
Last Modified: 2012-06-21
I want to edit a large binary file in VB6 . According to the help the maxium file size that I can seem to handle from 'Seek'  is 2,147,483,647 bytes
Is there anyway round this  ? Are these limitations still there in VB.NET ?
0
Comment
Question by:jhokexchange
  • 3
6 Comments
 
LVL 6

Expert Comment

by:mirzas
ID: 10773544
Why use seek? Read file block by block using CreateFile,ReadFile apis.
0
 
LVL 10

Accepted Solution

by:
Kavar earned 63 total points
ID: 10775553
seek will take you to a position in a file, if I remember correctly you have the option to seek relative or absolute, if you always do relative, you can hope 2gb, then gb again and be in the 4gb page of the file
0
 
LVL 6

Assisted Solution

by:mirzas
mirzas earned 62 total points
ID: 10781595
SetFilePointer can handle the max possible range. (signed 64-bit distance)
0
 
LVL 6

Expert Comment

by:mirzas
ID: 10781597
..depends on which OS you're targeting..
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

A short article about problems I had with the new location API and permissions in Marshmallow
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now