Click here to Skip to main content
15,921,113 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reg: Dialogue size change Pin
SandipG 25-Feb-09 1:16
SandipG 25-Feb-09 1:16 
GeneralRe: Reg: Dialogue size change Pin
coding_ram25-Feb-09 1:20
coding_ram25-Feb-09 1:20 
GeneralRe: Reg: Dialogue size change Pin
SandipG 25-Feb-09 1:21
SandipG 25-Feb-09 1:21 
AnswerRe: Reg: Dialogue size change Pin
David Crow25-Feb-09 3:20
David Crow25-Feb-09 3:20 
GeneralRe: Reg: Dialogue size change Pin
coding_ram25-Feb-09 18:14
coding_ram25-Feb-09 18:14 
QuestionWhy am I not able to get handle of file? Pin
SherTeks25-Feb-09 0:53
SherTeks25-Feb-09 0:53 
AnswerRe: Why am I not able to get handle of file? Pin
SandipG 25-Feb-09 1:05
SandipG 25-Feb-09 1:05 
GeneralRe: Why am I not able to get handle of file? Pin
ky_rerun25-Feb-09 3:47
ky_rerun25-Feb-09 3:47 
looks like this is related to delayed write. Just because you close a file does not mean the OS will write it

the folowing is from the FlushFileBuffers documentation

Due to disk caching interactions within the system, the FlushFileBuffers function can be inefficient when used after every write to a disk drive device when many writes are being performed separately. If an application is performing multiple writes to disk and also needs to ensure critical data is written to persistent media, the application should use unbuffered I/O instead of frequently calling FlushFileBuffers. To open a file for unbuffered I/O, call the CreateFile function with the FILE_FLAG_NO_BUFFERING and FILE_FLAG_WRITE_THROUGH flags. This prevents the file contents from being cached and flushes the metadata to disk with each write. For more information, see CreateFile.



to me it looks like you need to open it in non buffering mode.



a programmer traped in a thugs body

GeneralRe: Why am I not able to get handle of file? Pin
SandipG 25-Feb-09 4:38
SandipG 25-Feb-09 4:38 
QuestionRe: Why am I not able to get handle of file? Pin
David Crow25-Feb-09 3:22
David Crow25-Feb-09 3:22 
AnswerRe: Why am I not able to get handle of file? Pin
ky_rerun25-Feb-09 5:58
ky_rerun25-Feb-09 5:58 
AnswerRe: Why am I not able to get handle of file? Pin
Stuart Dootson25-Feb-09 12:06
professionalStuart Dootson25-Feb-09 12:06 
QuestionSerial coms worker thread not working Pin
jimjim73324-Feb-09 23:30
jimjim73324-Feb-09 23:30 
AnswerRe: Serial coms worker thread not working Pin
Cedric Moonen24-Feb-09 23:40
Cedric Moonen24-Feb-09 23:40 
GeneralRe: Serial coms worker thread not working Pin
jimjim73325-Feb-09 0:20
jimjim73325-Feb-09 0:20 
QuestionFew doubts in MFC application?? Pin
kapardhi24-Feb-09 23:22
kapardhi24-Feb-09 23:22 
AnswerRe: Few doubts in MFC application?? Pin
Iain Clarke, Warrior Programmer24-Feb-09 23:45
Iain Clarke, Warrior Programmer24-Feb-09 23:45 
QuestionCreateProcess in WinCE Pin
vijaywithu24-Feb-09 22:48
vijaywithu24-Feb-09 22:48 
AnswerRe: CreateProcess in WinCE Pin
Sethuraman.K24-Feb-09 23:33
Sethuraman.K24-Feb-09 23:33 
GeneralRe: CreateProcess in WinCE Pin
Sethuraman.K24-Feb-09 23:49
Sethuraman.K24-Feb-09 23:49 
GeneralRe: CreateProcess in WinCE Pin
vijaywithu24-Feb-09 23:50
vijaywithu24-Feb-09 23:50 
GeneralRe: CreateProcess in WinCE Pin
Sethuraman.K25-Feb-09 0:07
Sethuraman.K25-Feb-09 0:07 
GeneralRe: CreateProcess in WinCE Pin
Sethuraman.K25-Feb-09 0:31
Sethuraman.K25-Feb-09 0:31 
GeneralRe: CreateProcess in WinCE Pin
ujjawal kumar25-Feb-09 20:13
ujjawal kumar25-Feb-09 20:13 
QuestionAny one can help me with these code Pin
Archy_Yu24-Feb-09 21:27
Archy_Yu24-Feb-09 21:27 

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.