How To Seek Past VBA's 2GB File Limit (189981)
The information in this article applies to:
- Microsoft Visual Basic for Applications 5.0
- Microsoft Visual Basic Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q189981 SUMMARY
When performing low-level random file I/O using the Seek, Get, and Put
statements, you are limited to a maximum file size of 2^31 bytes(2 GB).
This article provides a sample class for random file I/O that allows access
beyond the 2GB limit.
REFERENCES
For additional information on the APIs used in this article, please see the
following articles in the Microsoft Knowledge Base:
186063
INFO: Translating Automation Errors for VB/VBA (Long)
165942
How To Write Data to a File Using WriteFile API
189862
How To Do 64-bit arithmetic in VBA
For detailed descriptions of the APIs used in this article, consult the
Platform SDK documentation available with Microsoft Visual C++ or Microsoft
Visual Studio.
Modification Type: | Minor | Last Reviewed: | 8/30/2004 |
---|
Keywords: | kbAPI kbhowto KB189981 |
---|
|