Click here to Skip to main content
15,890,741 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Innosetup and side-by-side assemblies Pin
PJ Arends2-Mar-08 22:35
professionalPJ Arends2-Mar-08 22:35 
QuestionCFileDialog Pin
Henri2-Mar-08 3:40
Henri2-Mar-08 3:40 
GeneralRe: CFileDialog Pin
Doc Lobster2-Mar-08 4:40
Doc Lobster2-Mar-08 4:40 
GeneralRe: CFileDialog Pin
Mark Salsbery2-Mar-08 7:21
Mark Salsbery2-Mar-08 7:21 
GeneralRe: CFileDialog Pin
Sameerkumar Namdeo2-Mar-08 16:15
Sameerkumar Namdeo2-Mar-08 16:15 
Generalcant create process :( Pin
david bagaturia2-Mar-08 1:24
david bagaturia2-Mar-08 1:24 
GeneralRe: cant create process :( Pin
Hamid_RT2-Mar-08 4:50
Hamid_RT2-Mar-08 4:50 
QuestionForce flush of unwritten data to USB stick? Pin
Dominik Reichl2-Mar-08 0:54
Dominik Reichl2-Mar-08 0:54 
Hello!

When writing to an USB stick, Windows caches all writes. We are therefore required to safely eject the USB stick in Windows before removing it. Unfortunately it frequently happens that users remove USB sticks without ejecting it first.

I would now like to force Windows to flush a file immediately when it's closed programmatically, i.e. I'm looking for an API function that allows such flushing. I am not looking for a way to completely disable the caching. The file is written using CreateFile/WriteFile.

Is there such an API or way to achieve flushing?

Thanks and best regards
Dominik


Too many passwords to remember? Try KeePass Password Safe!

AnswerRe: Force flush of unwritten data to USB stick? Pin
dontknowitall2-Mar-08 3:39
dontknowitall2-Mar-08 3:39 
QuestionRe: Force flush of unwritten data to USB stick? Pin
Dominik Reichl2-Mar-08 4:00
Dominik Reichl2-Mar-08 4:00 
GeneralRe: Force flush of unwritten data to USB stick? Pin
dontknowitall2-Mar-08 9:00
dontknowitall2-Mar-08 9:00 
GeneralRe: Force flush of unwritten data to USB stick? Pin
Dominik Reichl2-Mar-08 9:57
Dominik Reichl2-Mar-08 9:57 
AnswerRe: Force flush of unwritten data to USB stick? Pin
JudyL_MD3-Mar-08 2:13
JudyL_MD3-Mar-08 2:13 
Generaldeque best practices Pin
George_George1-Mar-08 23:18
George_George1-Mar-08 23:18 
GeneralRe: deque best practices Pin
Chris Losinger2-Mar-08 5:15
professionalChris Losinger2-Mar-08 5:15 
GeneralRe: deque best practices Pin
George_George2-Mar-08 14:09
George_George2-Mar-08 14:09 
GeneralRe: deque best practices Pin
Chris Losinger2-Mar-08 14:12
professionalChris Losinger2-Mar-08 14:12 
GeneralRe: deque best practices Pin
George_George2-Mar-08 14:51
George_George2-Mar-08 14:51 
GeneralRe: deque best practices Pin
Chris Losinger2-Mar-08 15:02
professionalChris Losinger2-Mar-08 15:02 
GeneralRe: deque best practices Pin
George_George2-Mar-08 15:13
George_George2-Mar-08 15:13 
Generaltypedef struct problem Pin
gentleguy1-Mar-08 22:21
gentleguy1-Mar-08 22:21 
GeneralRe: typedef struct problem Pin
Gary R. Wheeler2-Mar-08 1:04
Gary R. Wheeler2-Mar-08 1:04 
GeneralRe: typedef struct problem Pin
gentleguy2-Mar-08 15:52
gentleguy2-Mar-08 15:52 
GeneralRe: typedef struct problem Pin
Gary R. Wheeler3-Mar-08 11:18
Gary R. Wheeler3-Mar-08 11:18 
Generalsize and iterator of deque Pin
George_George1-Mar-08 20:43
George_George1-Mar-08 20:43 

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.