|
-
Mar 22nd, 2000, 09:43 PM
#1
Thread Starter
Junior Member
Dim fileSecu As SECURITY_ATTRIBUTES
filehandle = CreateFile("c:\temp.jpg", GENERIC_READ, 0, fileSecu, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0)
filesize = GetFileSize(filehandle, 10000000)
Hi,
I am trying to use the above two API functions to get the file size of certain jpg file but I am always getting a file handle value of -1 and the filesize -1. What am I missing here? Thanks for any help in advance
Sparhawk
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
|