Click here to Skip to main content
15,922,166 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: PNG on button Pin
CPallini10-Jan-09 10:48
mveCPallini10-Jan-09 10:48 
AnswerRe: PNG on button Pin
Iain Clarke, Warrior Programmer11-Jan-09 23:12
Iain Clarke, Warrior Programmer11-Jan-09 23:12 
QuestionSimple Question: Where to store global object? Pin
nobaq10-Jan-09 5:47
nobaq10-Jan-09 5:47 
AnswerRe: Simple Question: Where to store global object? Pin
Richard Andrew x6410-Jan-09 6:08
professionalRichard Andrew x6410-Jan-09 6:08 
GeneralRe: Simple Question: Where to store global object? Pin
nobaq10-Jan-09 6:15
nobaq10-Jan-09 6:15 
GeneralRe: Simple Question: Where to store global object? Pin
nobaq10-Jan-09 6:18
nobaq10-Jan-09 6:18 
GeneralRe: Simple Question: Where to store global object? Pin
Richard Andrew x6410-Jan-09 6:27
professionalRichard Andrew x6410-Jan-09 6:27 
AnswerRe: Simple Question: Where to store global object? Pin
David Crow12-Jan-09 3:30
David Crow12-Jan-09 3:30 
Questioncompare c++/MFC to C#/.net Pin
Seraph_summer10-Jan-09 5:09
Seraph_summer10-Jan-09 5:09 
AnswerRe: compare c++/MFC to C#/.net Pin
Hamid_RT10-Jan-09 5:52
Hamid_RT10-Jan-09 5:52 
QuestionRe: compare c++/MFC to C#/.net Pin
bob1697210-Jan-09 6:07
bob1697210-Jan-09 6:07 
AnswerRe: compare c++/MFC to C#/.net Pin
Loreia10-Jan-09 6:09
Loreia10-Jan-09 6:09 
AnswerRe: compare c++/MFC to C#/.net Pin
Stuart Dootson10-Jan-09 13:36
professionalStuart Dootson10-Jan-09 13:36 
AnswerRe: compare c++/MFC to C#/.net Pin
Green Fuze11-Jan-09 6:48
Green Fuze11-Jan-09 6:48 
Question::FindFirstFile problem [modified] Pin
Loreia10-Jan-09 4:48
Loreia10-Jan-09 4:48 
AnswerRe: ::FindFirstFile problem Pin
Luc Pattyn10-Jan-09 5:15
sitebuilderLuc Pattyn10-Jan-09 5:15 
GeneralRe: ::FindFirstFile problem Pin
Loreia10-Jan-09 5:52
Loreia10-Jan-09 5:52 
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

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.