Click here to Skip to main content
15,893,487 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Question About Threads Pin
AmbiguousName12-Dec-13 4:58
AmbiguousName12-Dec-13 4:58 
QuestionAlways write to top of file Pin
Grahamfff11-Dec-13 1:16
Grahamfff11-Dec-13 1:16 
AnswerRe: Always write to top of file Pin
Richard MacCutchan11-Dec-13 1:53
mveRichard MacCutchan11-Dec-13 1:53 
GeneralRe: Always write to top of file Pin
Grahamfff11-Dec-13 2:33
Grahamfff11-Dec-13 2:33 
GeneralRe: Always write to top of file Pin
Richard MacCutchan11-Dec-13 2:38
mveRichard MacCutchan11-Dec-13 2:38 
GeneralRe: Always write to top of file Pin
Grahamfff11-Dec-13 4:04
Grahamfff11-Dec-13 4:04 
GeneralRe: Always write to top of file Pin
Richard MacCutchan11-Dec-13 4:57
mveRichard MacCutchan11-Dec-13 4:57 
GeneralRe: Always write to top of file Pin
enhzflep11-Dec-13 4:58
enhzflep11-Dec-13 4:58 
As Eugen alludes to, a time-critical loop is not the place to muck about. Write the data to the end of the file then deal with the order later on.

Furthermore, I assume that you're dealing with different files each time through the loop. If not, then again, don't muck about. Open the file before the loop and close it again afterwards.
AnswerRe: Always write to top of file Pin
Eugen Podsypalnikov11-Dec-13 2:26
Eugen Podsypalnikov11-Dec-13 2:26 
QuestionRe: Always write to top of file Pin
David Crow11-Dec-13 5:15
David Crow11-Dec-13 5:15 
AnswerRe: Always write to top of file Pin
Grahamfff11-Dec-13 5:22
Grahamfff11-Dec-13 5:22 
GeneralRe: Always write to top of file Pin
Stefan_Lang15-Dec-13 23:23
Stefan_Lang15-Dec-13 23:23 
AnswerRe: Always write to top of file Pin
Alan Balkany11-Dec-13 5:27
Alan Balkany11-Dec-13 5:27 
Questionapp for windows 8.1 Pin
Member 1045927510-Dec-13 22:32
Member 1045927510-Dec-13 22:32 
AnswerRe: app for windows 8.1 Pin
Richard MacCutchan11-Dec-13 0:23
mveRichard MacCutchan11-Dec-13 0:23 
AnswerRe: app for windows 8.1 Pin
Erudite_Eric11-Dec-13 1:57
Erudite_Eric11-Dec-13 1:57 
QuestionGet rid of STL warnings Pin
_Flaviu10-Dec-13 21:58
_Flaviu10-Dec-13 21:58 
SuggestionRe: Get rid of STL warnings Pin
Richard MacCutchan10-Dec-13 22:23
mveRichard MacCutchan10-Dec-13 22:23 
AnswerRe: Get rid of STL warnings Pin
Freak3010-Dec-13 23:01
Freak3010-Dec-13 23:01 
GeneralRe: Get rid of STL warnings Pin
_Flaviu11-Dec-13 2:37
_Flaviu11-Dec-13 2:37 
SuggestionRe: Get rid of STL warnings Pin
David Crow11-Dec-13 5:19
David Crow11-Dec-13 5:19 
QuestionTrying to reuse code with a static library Pin
Richard Andrew x648-Dec-13 19:21
professionalRichard Andrew x648-Dec-13 19:21 
AnswerRe: Trying to reuse code with a static library Pin
Richard MacCutchan8-Dec-13 22:24
mveRichard MacCutchan8-Dec-13 22:24 
AnswerRe: Trying to reuse code with a static library Pin
Albert Holguin9-Dec-13 5:23
professionalAlbert Holguin9-Dec-13 5:23 
GeneralRe: Trying to reuse code with a static library Pin
Richard Andrew x649-Dec-13 6:35
professionalRichard Andrew x649-Dec-13 6:35 

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.