Click here to Skip to main content
15,921,841 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Where to put the menu handler in multi-view SDI application? Pin
John M. Drescher3-Sep-03 14:15
John M. Drescher3-Sep-03 14:15 
GeneralRe: Where to put the menu handler in multi-view SDI application? Pin
Binayak3-Sep-03 14:18
Binayak3-Sep-03 14:18 
GeneralRe: Where to put the menu handler in multi-view SDI application? Pin
John M. Drescher3-Sep-03 15:53
John M. Drescher3-Sep-03 15:53 
Generalwhere will I find dbgheap.c etc Pin
Member 5314143-Sep-03 13:45
Member 5314143-Sep-03 13:45 
GeneralRe: where will I find dbgheap.c etc Pin
Brad Sokol3-Sep-03 14:42
Brad Sokol3-Sep-03 14:42 
Generaloutput file in VC++ Pin
mr20033-Sep-03 11:05
mr20033-Sep-03 11:05 
GeneralRe: output file in VC++ Pin
Hosam Aly Mahmoud3-Sep-03 11:37
Hosam Aly Mahmoud3-Sep-03 11:37 
GeneralRe: output file in VC++ Pin
Abin3-Sep-03 22:53
Abin3-Sep-03 22:53 
First, the contents may be output to some file else if you use relative path like that, you better use absolute path to make sure the destination file is exactly which you expected. So type this instead:
ofstream out("C:\\output.txt");.

Second, you need to exam the stream first to make sure the destination file is ready to be written, so add this line right after you open it:
ASSERT(out != NULL);

Third, always close a opened file as soon as you are done with it, add this line at the end:
out.close();

I have a strong feeling that your problem was caused by the first issue, you probably will find "output.txt" in your "My Document" folder, lol.
GeneralHyperlink Pin
Turtle Hand3-Sep-03 10:44
Turtle Hand3-Sep-03 10:44 
GeneralRe: Hyperlink Pin
Jason Henderson3-Sep-03 19:04
Jason Henderson3-Sep-03 19:04 
GeneralRe: Hyperlink Pin
Turtle Hand4-Sep-03 2:21
Turtle Hand4-Sep-03 2:21 
GeneralRe: Hyperlink Pin
Jason Henderson4-Sep-03 2:38
Jason Henderson4-Sep-03 2:38 
GeneralRe: Hyperlink Pin
Turtle Hand4-Sep-03 2:48
Turtle Hand4-Sep-03 2:48 
GeneralProgram compiled, but produced no ".exe" file. Pin
WREY3-Sep-03 10:31
WREY3-Sep-03 10:31 
GeneralRe: Program compiled, but produced no ".exe" file. Pin
David Crow3-Sep-03 10:42
David Crow3-Sep-03 10:42 
GeneralRe: Program compiled, but produced no ".exe" file. Pin
WREY3-Sep-03 11:05
WREY3-Sep-03 11:05 
QuestionHow can I deselect an Item in a Tree Control Pin
Binayak3-Sep-03 8:52
Binayak3-Sep-03 8:52 
AnswerRe: How can I deselect an Item in a Tree Control Pin
Brian Shifrin3-Sep-03 11:35
Brian Shifrin3-Sep-03 11:35 
GeneralBrowse button Pin
svinn3-Sep-03 8:43
svinn3-Sep-03 8:43 
GeneralRe: Browse button Pin
David Crow3-Sep-03 10:42
David Crow3-Sep-03 10:42 
GeneralInsert a Delay over ethernet Pin
NewHSKid3-Sep-03 8:25
NewHSKid3-Sep-03 8:25 
GeneralRe: Insert a Delay over ethernet Pin
John M. Drescher3-Sep-03 10:30
John M. Drescher3-Sep-03 10:30 
GeneralRe: Insert a Delay over ethernet Pin
NewHSKid3-Sep-03 13:34
NewHSKid3-Sep-03 13:34 
GeneralRe: Insert a Delay over ethernet Pin
John M. Drescher3-Sep-03 13:49
John M. Drescher3-Sep-03 13:49 
GeneralRe: Insert a Delay over ethernet Pin
NewHSKid3-Sep-03 16:07
NewHSKid3-Sep-03 16:07 

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.