Click here to Skip to main content
15,914,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MDI child window Pin
Anu_Bala25-Jul-07 20:02
Anu_Bala25-Jul-07 20:02 
GeneralRe: MDI child window Pin
Nelek25-Jul-07 21:09
protectorNelek25-Jul-07 21:09 
Questionwriting a string to a text file Pin
moonraker92825-Jul-07 14:09
moonraker92825-Jul-07 14:09 
AnswerRe: writing a string to a text file Pin
Mark Salsbery25-Jul-07 14:23
Mark Salsbery25-Jul-07 14:23 
GeneralRe: writing a string to a text file Pin
Stephen Hewitt25-Jul-07 18:03
Stephen Hewitt25-Jul-07 18:03 
GeneralRe: writing a string to a text file Pin
Mark Salsbery25-Jul-07 18:41
Mark Salsbery25-Jul-07 18:41 
AnswerRe: writing a string to a text file Pin
User 58385225-Jul-07 19:00
User 58385225-Jul-07 19:00 
GeneralRe: writing a string to a text file Pin
cp987625-Jul-07 19:16
cp987625-Jul-07 19:16 
Josh Gray wrote:
I'd try changing "\n" to std::endl


This is not related to the OP, but I think there is a tendency to overuse std::endl, I suspect that somehow people think it is more C++ish. The big difference is that std::endl, as well as outputting a new line character, flushes the stream's buffer. For a few random output lines this doesn't matter, but for writing normal files use '\n' and let the stream's buffer do what it is supposed to do. The exception is when you use file-based debugging - here endl is essential as it ensures that in the case of a crash the last line of the file is actually written to disk.




Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."

GeneralRe: writing a string to a text file Pin
User 58385225-Jul-07 19:37
User 58385225-Jul-07 19:37 
Questionpassing vars in PostMessage (wParam, lParam) Pin
john john mackey25-Jul-07 14:08
john john mackey25-Jul-07 14:08 
AnswerRe: passing vars in PostMessage (wParam, lParam) Pin
Mark Salsbery25-Jul-07 14:20
Mark Salsbery25-Jul-07 14:20 
AnswerRe: passing vars in PostMessage (wParam, lParam) Pin
ThatsAlok25-Jul-07 20:07
ThatsAlok25-Jul-07 20:07 
Questionbuffer Pin
dellthinker25-Jul-07 13:51
dellthinker25-Jul-07 13:51 
QuestionRe: buffer Pin
Mark Salsbery25-Jul-07 14:09
Mark Salsbery25-Jul-07 14:09 
AnswerRe: buffer Pin
ThatsAlok25-Jul-07 20:09
ThatsAlok25-Jul-07 20:09 
AnswerRe: buffer Pin
Karismatic25-Jul-07 20:59
Karismatic25-Jul-07 20:59 
QuestionConversion to hexa Pin
AAKAra25-Jul-07 8:33
AAKAra25-Jul-07 8:33 
AnswerRe: Conversion to hexa Pin
Mark Salsbery25-Jul-07 9:47
Mark Salsbery25-Jul-07 9:47 
AnswerRe: Conversion to hexa Pin
Mark Salsbery25-Jul-07 19:02
Mark Salsbery25-Jul-07 19:02 
QuestionODBC connection going bad -- what to do? Pin
Robin Hilliard25-Jul-07 7:21
Robin Hilliard25-Jul-07 7:21 
AnswerRe: ODBC connection going bad -- what to do? Pin
cmk25-Jul-07 13:04
cmk25-Jul-07 13:04 
GeneralRe: ODBC connection going bad -- what to do? Pin
Robin Hilliard25-Jul-07 13:53
Robin Hilliard25-Jul-07 13:53 
QuestionWhy does not Command Prompt window have WndProc ? Pin
Ky Nam25-Jul-07 7:04
Ky Nam25-Jul-07 7:04 
AnswerRe: Why does not Command Prompt window have WndProc ? Pin
Jonathan [Darka]25-Jul-07 7:08
professionalJonathan [Darka]25-Jul-07 7:08 
GeneralRe: Why does not Command Prompt window have WndProc ? Pin
Ky Nam25-Jul-07 15:02
Ky Nam25-Jul-07 15: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.