Solved

Handling large files in VB6

Posted on 2004-04-07
6
961 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ejb example issues 3 53
VB.net and sql server 4 54
Select specific duplicate row based on specific criteria 4 70
"lblTime is not declared" 3 34
This is about my first experience with programming Arduino.
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
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…

749 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