Click here to Skip to main content
15,923,087 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: PNG on button Pin
Richard Andrew x6410-Jan-09 6:42
professionalRichard Andrew x6410-Jan-09 6:42 
GeneralRe: PNG on button Pin
kiranin10-Jan-09 7:18
kiranin10-Jan-09 7:18 
AnswerRe: PNG on button Pin
Hamid_RT10-Jan-09 7:50
Hamid_RT10-Jan-09 7:50 
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 
Well, one way one could interpret the sentence is: a temporary file is private, it belongs to the process and will not survive the process, so once you decide to make a file temporary, there is no need for further file operations as long as it keeps holding the data for the owning process (so the only thing
it may have to write to disk is data that exceeds the cache capacity). Once the file gets closed, it
should be deleted (not sure by whom: the OS or the app, probably the OS, maybe only when the app
exits, but then your tests have finished too).

(I know you can disagree on all that, the file system should always tell the truth, etc)

You currently create the file as a regular file (despite your comment in the source), and later set the
TEMP flag; so the file gets created on disk as a regular file, and once you turn it into a TEMP file,
it may or may not reflect that on disk.

This is a little experiment you could do: create file, write data, make temp, show current time,
wait 10 seconds, write more data, close file, now use Explorer to see modified datetime: did it
update after you turned it into temp? if not, it supports the "TEMP means no valid metadata" hypothesis.

And maybe, just maybe, if you create it the start as a TEMP file right away, it will show that
everywhere, and later on you could clear the TEMP flag and all would be good...

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Love, happiness and fewer bugs for 2009!


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 

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.