|
-
Sep 15th, 2003, 07:52 PM
#1
Thread Starter
Fanatic Member
Problem using GetAttr [SOLVED]
This is rather confusing to me, and I would like someone to shed some light on the subject.
I am using GetAttr to get the attributes of each item in a listview. For some reason, it doesn't see the Program Files directory as a directory, but as a 0-byte file instead.
I looked at its attributes in Explorer, and I found that its read-only attribute had been set. Thinking that might be what was causing the problem, I turned it off and tried my program again. Same result. It still sees the Program Files directory as a 0-byte file. Could I have just found a known bug in the function, or is that actually the way it's supposed to work?
Is there any way I can look at the file's type rather than its attributes? Explorer sees its type fine as a file folder, so that might be the approach I will take.
Last edited by hothead; Sep 16th, 2003 at 05:44 PM.
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
|