• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 982
  • Last Modified:

Handling large files in VB6

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
jhokexchange
Asked:
jhokexchange
  • 3
2 Solutions
 
mirzasCommented:
Why use seek? Read file block by block using CreateFile,ReadFile apis.
0
 
KavarCommented:
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
 
mirzasCommented:
SetFilePointer can handle the max possible range. (signed 64-bit distance)
0
 
mirzasCommented:
..depends on which OS you're targeting..
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now