Solved

Handling large files in VB6

Posted on 2004-04-07
6
934 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an explanation of a simple data model to help parse a JSON feed
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

919 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

18 Experts available now in Live!

Get 1:1 Help Now