?
Solved

Handling large files in VB6

Posted on 2004-04-07
6
Medium Priority
?
973 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 252 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 248 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Six Sigma Control Plans
Suggested Courses

777 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