|
-
Nov 6th, 2006, 08:24 AM
#1
Thread Starter
Member
[RESOLVED] Read Write API - Setting file attributes
Has anyone else had problems with this API?
I can't get the example to work. It always returns zero for nSizw.
nSize = GetFileSize(hOrgFile, 0)
Then I get Subscript out of range at
ReDim bBytes(1 To nSize - Int(nSize / 2)) As Byte.
Is this a know problem which people can help me with, or does anyone know a better way to ensure a file they are trying to write to is not "Read Only", and make "Read & Write".
Thanks
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
|