|
-
September 11th, 1999, 02:52 AM
#1
How to obtain file handle
If I open file in VB6 with Open statement, can I obtain it's Windows handle?
-
September 13th, 1999, 01:58 AM
#2
Re: How to obtain file handle
a file does not have a window handle, but a file handle.
Dim hFile as integer ' hold file handle
hFile =freefile
open "yourfile" for input as #hFile
close hFile
-
September 13th, 1999, 03:21 AM
#3
Re: How to obtain file handle
Note that this handle you get from VB cannot (!) be used with api functions who want a filehandle, this filehandle is an internal handle of VB. If you need to have a file handle that canbe used with API function, use the API to open the file.
Crazy D @ Work :-)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|