Click here to Skip to main content
15,902,447 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralLots'o'data... Pin
el davo24-Jun-03 13:25
el davo24-Jun-03 13:25 
GeneralRe: Lots'o'data... Pin
Dave Bryant24-Jun-03 14:34
Dave Bryant24-Jun-03 14:34 
QuestionWhat's wrong with this code? Pin
Jonathan Gilligan24-Jun-03 12:38
Jonathan Gilligan24-Jun-03 12:38 
AnswerRe: What's wrong with this code? Pin
Dave Bryant24-Jun-03 12:43
Dave Bryant24-Jun-03 12:43 
AnswerRe: What's wrong with this code? Pin
ZoogieZork24-Jun-03 14:11
ZoogieZork24-Jun-03 14:11 
GeneralRe: What's wrong with this code? Pin
Jonathan Gilligan25-Jun-03 5:20
Jonathan Gilligan25-Jun-03 5:20 
Generalfopen Pin
cnd1200124-Jun-03 11:11
cnd1200124-Jun-03 11:11 
GeneralRe: fopen Pin
Neville Franks24-Jun-03 11:44
Neville Franks24-Jun-03 11:44 
Hi Alex,
You aren't testing whether the second fclose() succeeds. It may be that the value of fp has been trashed by your for loops. You could printf fp after the close or better still inspect it in the debugger.

Your code hasn't displayed correctly because < and/or > signs are missing. You need to use the Formatting bar to add these.

I'd try remove the code between the fopen/fclose and repeat the test and see what happens. Also inspect why the fopen is failing more closely. perror() might be of use here and the CRT global errno.

Hope that helps.

Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
GeneralRe: fopen Pin
cnd1200125-Jun-03 22:08
cnd1200125-Jun-03 22:08 
GeneralOld School Help Needed Pin
juglugs24-Jun-03 10:44
juglugs24-Jun-03 10:44 
GeneralRe: Old School Help Needed Pin
John R. Shaw24-Jun-03 11:11
John R. Shaw24-Jun-03 11:11 
GeneralRe: Old School Help Needed Pin
juglugs25-Jun-03 6:39
juglugs25-Jun-03 6:39 
GeneralRe: Old School Help Needed Pin
basementman24-Jun-03 11:12
basementman24-Jun-03 11:12 
GeneralPlotting wave files Pin
Juan Carlos Cobas24-Jun-03 10:36
Juan Carlos Cobas24-Jun-03 10:36 
GeneralCRichEditCtrl and Select All Functionality Pin
ScottPrusinoski24-Jun-03 10:05
ScottPrusinoski24-Jun-03 10:05 
Generalerror with creating a pointer to a struct Pin
johnstonsk24-Jun-03 9:53
johnstonsk24-Jun-03 9:53 
GeneralRe: error with creating a pointer to a struct Pin
Michael Dunn24-Jun-03 10:56
sitebuilderMichael Dunn24-Jun-03 10:56 
GeneralRe: error with creating a pointer to a struct Pin
basementman24-Jun-03 11:16
basementman24-Jun-03 11:16 
GeneralRe: error with creating a pointer to a struct Pin
John R. Shaw24-Jun-03 11:38
John R. Shaw24-Jun-03 11:38 
GeneralResource Editor Pin
butterbean73024-Jun-03 9:20
butterbean73024-Jun-03 9:20 
GeneralI don't inderstand these errors Pin
johnstonsk24-Jun-03 9:06
johnstonsk24-Jun-03 9:06 
GeneralRe: I don't inderstand these errors Pin
peterchen24-Jun-03 9:29
peterchen24-Jun-03 9:29 
GeneralRe: I don't inderstand these errors Pin
johnstonsk24-Jun-03 9:31
johnstonsk24-Jun-03 9:31 
GeneralRe: I don't inderstand these errors Pin
Anonymous24-Jun-03 9:52
Anonymous24-Jun-03 9:52 
GeneralMFC question: scrolling window Pin
Charles Léonard24-Jun-03 8:56
Charles Léonard24-Jun-03 8:56 

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.