The information in this article applies to:
SUMMARYMicrosoft Visual Basic for Windows programs normally may not have more than 15 files open at once. Visual Basic for Windows displays the error message "Too many files" (error code 67) when you attempt to open more than the maximum number of files at once. You can increase the maximum number of open files by calling the Windows API function SetHandleCount. MORE INFORMATION
The Windows API function SetHandleCount requests Windows to change the
maximum number of files a program can open. SetHandleCount returns the
actual number of handles that the program can use, which may be less
than the number requested. ExampleThe following code example demonstrates how to use SetHandleCount:'*** In the global module: ***
'*** In the form: ***
Additional query words: 2.00 3.00
Keywords : |
Last Reviewed: August 19, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |