Click here to Skip to main content
15,887,376 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Logging in VC++ Pin
PJ Arends10-Aug-10 22:40
professionalPJ Arends10-Aug-10 22:40 
GeneralRe: Logging in VC++ Pin
Moak10-Aug-10 23:01
Moak10-Aug-10 23:01 
QuestionCRichEditCtrrl and EN_REQUESTRESIZE [modified] Pin
Leif Goodwin10-Aug-10 1:50
Leif Goodwin10-Aug-10 1:50 
QuestionCRectTracker on CScrollView Pin
mesajflaviu10-Aug-10 1:39
mesajflaviu10-Aug-10 1:39 
AnswerRe: CRectTracker on CScrollView [Repost] Pin
Richard MacCutchan10-Aug-10 1:42
mveRichard MacCutchan10-Aug-10 1:42 
AnswerRe: CRectTracker on CScrollView Pin
Niklas L10-Aug-10 1:44
Niklas L10-Aug-10 1:44 
GeneralRe: CRectTracker on CScrollView Pin
mesajflaviu10-Aug-10 10:19
mesajflaviu10-Aug-10 10:19 
QuestionBoost Library Pin
002comp10-Aug-10 0:40
002comp10-Aug-10 0:40 
AnswerRe: Boost Library Pin
Niklas L10-Aug-10 1:01
Niklas L10-Aug-10 1:01 
GeneralRe: Boost Library Pin
002comp10-Aug-10 2:48
002comp10-Aug-10 2:48 
GeneralRe: Boost Library Pin
Niklas L10-Aug-10 2:58
Niklas L10-Aug-10 2:58 
GeneralRe: Boost Library Pin
002comp10-Aug-10 18:02
002comp10-Aug-10 18:02 

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.