Click here to Skip to main content
15,881,204 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ::FindFirstFile problem Pin
Luc Pattyn10-Jan-09 6:03
sitebuilderLuc Pattyn10-Jan-09 6:03 
GeneralRe: ::FindFirstFile problem Pin
Loreia10-Jan-09 6:20
Loreia10-Jan-09 6:20 
GeneralRe: ::FindFirstFile problem Pin
Luc Pattyn10-Jan-09 6:46
sitebuilderLuc Pattyn10-Jan-09 6:46 
GeneralRe: ::FindFirstFile problem Pin
Loreia10-Jan-09 7:55
Loreia10-Jan-09 7:55 
GeneralRe: ::FindFirstFile problem Pin
Luc Pattyn10-Jan-09 8:09
sitebuilderLuc Pattyn10-Jan-09 8:09 
GeneralRe: ::FindFirstFile problem Pin
Loreia10-Jan-09 8:33
Loreia10-Jan-09 8:33 
GeneralRe: ::FindFirstFile problem Pin
Randor 10-Jan-09 8:59
professional Randor 10-Jan-09 8:59 
GeneralRe: ::FindFirstFile problem Pin
Loreia10-Jan-09 10:09
Loreia10-Jan-09 10:09 
David, thank you a lot for your answer.

I know from experience that FAT32 doesn't support encryption, so answer to your question is: no. LOL

So, TEMP attribute is NTFS specific, and it is not supported on FAT32. Thanks for clarifying that, but what I don't understand is why SetFileAttributes returns TRUE when setting TEMP attribute to a file on FAT32.
It SetFileAttributes function returned FALSE I wouldn't be in this mess in the first place.

My understanding is: if FAT32 doesn't support TEMP files, than SetFileAttributes should fail to set TEMP attribute.

I was wrong in presuming that "error" (for the lack of better description) was in FindFirstFile. But in fact FindFirstFile correctly reports that TEMP attribute is not set on FAT32 (as it cannot be set on FAT32).
And the real problem is in SetFileAttributes/GetFileAttributes functions that *claim* that file has a TEMP attribute set even on FAT32 (and this is in direct contradiction to FAT32 File System Specification that you posted a link for).

I you know why are SetFileAttributes/GetFileAttributes acting in this way, your explanation would help me a lot.

Best regards
loreia
GeneralRe: ::FindFirstFile problem Pin
Randor 10-Jan-09 10:45
professional Randor 10-Jan-09 10:45 
GeneralRe: ::FindFirstFile problem Pin
Loreia10-Jan-09 10:56
Loreia10-Jan-09 10:56 
GeneralRe: ::FindFirstFile problem Pin
Luc Pattyn10-Jan-09 10:11
sitebuilderLuc Pattyn10-Jan-09 10:11 
QuestionRe: ::FindFirstFile problem Pin
David Crow12-Jan-09 3:36
David Crow12-Jan-09 3:36 
AnswerRe: ::FindFirstFile problem Pin
Loreia12-Jan-09 7:24
Loreia12-Jan-09 7:24 
QuestionCan I handle click events on a static control [SOLVED] Pin
sashoalm10-Jan-09 4:15
sashoalm10-Jan-09 4:15 
AnswerRe: Can I handle click events on a static control Pin
Randor 10-Jan-09 4:35
professional Randor 10-Jan-09 4:35 
GeneralRe: Can I handle click events on a static control Pin
sashoalm10-Jan-09 5:01
sashoalm10-Jan-09 5:01 
GeneralRe: Can I handle click events on a static control Pin
Code-o-mat10-Jan-09 5:43
Code-o-mat10-Jan-09 5:43 
GeneralRe: Can I handle click events on a static control Pin
Randor 10-Jan-09 6:15
professional Randor 10-Jan-09 6:15 
GeneralRe: Can I handle click events on a static control [modified] Pin
sashoalm10-Jan-09 6:59
sashoalm10-Jan-09 6:59 
GeneralRe: Can I handle click events on a static control Pin
sashoalm10-Jan-09 7:32
sashoalm10-Jan-09 7:32 
GeneralRe: Can I handle click events on a static control Pin
Randor 10-Jan-09 7:35
professional Randor 10-Jan-09 7:35 
GeneralRe: Can I handle click events on a static control Pin
Jijo.Raj10-Jan-09 6:57
Jijo.Raj10-Jan-09 6:57 
GeneralRe: Can I handle click events on a static control Pin
sashoalm10-Jan-09 7:04
sashoalm10-Jan-09 7:04 
QuestionLayoutRTL creating issues in displaying image data Pin
Alex@9C10-Jan-09 0:17
Alex@9C10-Jan-09 0:17 
QuestionCFile::sharingViolation exception? Pin
AnayKulkarni10-Jan-09 0:05
AnayKulkarni10-Jan-09 0:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.