Fozzy
September 11th, 1999, 02:52 AM
If I open file in VB6 with Open statement, can I obtain it's Windows handle?
|
Click to See Complete Forum and Search --> : How to obtain file handle Fozzy September 11th, 1999, 02:52 AM If I open file in VB6 with Open statement, can I obtain it's Windows handle? Lothar Haensler September 13th, 1999, 01:58 AM 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 Crazy D @ Work September 13th, 1999, 03:21 AM 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 :-) codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |