Click here to Skip to main content
15,896,269 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHELP: pair-value search & replace Pin
andwan010-Aug-10 4:24
andwan010-Aug-10 4:24 
AnswerRe: HELP: pair-value search & replace Pin
Moak10-Aug-10 12:55
Moak10-Aug-10 12:55 
AnswerRe: HELP: pair-value search & replace Pin
CPallini10-Aug-10 20:55
mveCPallini10-Aug-10 20:55 
GeneralRe: HELP: pair-value search & replace Pin
Moak10-Aug-10 23:10
Moak10-Aug-10 23:10 
GeneralRe: HELP: pair-value search & replace Pin
CPallini10-Aug-10 23:18
mveCPallini10-Aug-10 23:18 
QuestionHow to Get CMenu Rect? [modified] Pin
dancingfish10-Aug-10 3:17
dancingfish10-Aug-10 3:17 
AnswerRe: How to Get CMenu Rect? Pin
CPallini10-Aug-10 3:25
mveCPallini10-Aug-10 3:25 
GeneralRe: How to Get CMenu Rect? Pin
dancingfish10-Aug-10 3:30
dancingfish10-Aug-10 3:30 
QuestionRe: How to Get CMenu Rect? Pin
David Crow10-Aug-10 3:32
David Crow10-Aug-10 3:32 
AnswerRe: How to Get CMenu Rect? Pin
dancingfish10-Aug-10 3:39
dancingfish10-Aug-10 3:39 
QuestionRe: How to Get CMenu Rect? Pin
David Crow10-Aug-10 3:46
David Crow10-Aug-10 3:46 
AnswerRe: How to Get CMenu Rect? Pin
dancingfish10-Aug-10 3:47
dancingfish10-Aug-10 3:47 
GeneralRe: How to Get CMenu Rect? Pin
David Crow10-Aug-10 4:11
David Crow10-Aug-10 4:11 
GeneralRe: How to Get CMenu Rect? Pin
Richard MacCutchan10-Aug-10 4:03
mveRichard MacCutchan10-Aug-10 4:03 
AnswerRe: How to Get CMenu Rect? Pin
Eugen Podsypalnikov10-Aug-10 9:41
Eugen Podsypalnikov10-Aug-10 9:41 
GeneralRe: How to Get CMenu Rect? Pin
dancingfish10-Aug-10 14:39
dancingfish10-Aug-10 14:39 
QuestionLogging in VC++ Pin
dilara semerci10-Aug-10 1:57
dilara semerci10-Aug-10 1:57 
AnswerRe: Logging in VC++ Pin
CPallini10-Aug-10 2:57
mveCPallini10-Aug-10 2:57 
AnswerRe: Logging in VC++ Pin
Niklas L10-Aug-10 3:01
Niklas L10-Aug-10 3:01 
AnswerRe: Logging in VC++ Pin
Moak10-Aug-10 4:28
Moak10-Aug-10 4:28 
dilara semerci wrote:
is a way to write the new data at the beginning of the file -NOT OVERWRITING THE OLDER- ?


From a technical point of view: Yes it is possible. Open a new file, write new entry, copy the complete log file, swap files (remove, rename). This is probably something you don't want to do very often and not with large log files.

From a design point of view: Probably it's easier to let the log file visualisation class show newest entries on top (twitter like), but let the log file class write to the end of the file. If users prefer to use command line tools (tail -f) they are used to log files being updated this way.

Hope this helps. Smile | :)
/M

GeneralRe: Logging in VC++ Pin
dilara semerci10-Aug-10 20:09
dilara semerci10-Aug-10 20:09 
GeneralRe: Logging in VC++ Pin
CPallini10-Aug-10 20:59
mveCPallini10-Aug-10 20:59 
QuestionRe: Logging in VC++ Pin
dilara semerci10-Aug-10 21:02
dilara semerci10-Aug-10 21:02 
AnswerRe: Logging in VC++ Pin
CPallini10-Aug-10 21:11
mveCPallini10-Aug-10 21:11 
AnswerRe: Logging in VC++ Pin
Moak10-Aug-10 23:20
Moak10-Aug-10 23:20 

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.