Click here to Skip to main content
15,913,090 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: reading file using fscanf(); Pin
Raza568016-Jan-12 4:05
Raza568016-Jan-12 4:05 
Questionin win32api if i want to move between the fields with tab button ? is it possible ? Pin
a1_shay15-Jan-12 5:44
a1_shay15-Jan-12 5:44 
GeneralNot enough information Pin
Code-o-mat16-Jan-12 0:21
Code-o-mat16-Jan-12 0:21 
AnswerRe: in win32api if i want to move between the fields with tab button ? is it possible ? Pin
Stephen Hewitt16-Jan-12 2:23
Stephen Hewitt16-Jan-12 2:23 
GeneralRe: in win32api if i want to move between the fields with tab button ? is it possible ? Pin
a1_shay16-Jan-12 11:44
a1_shay16-Jan-12 11:44 
Questionin win32api how i create and use with dll file ? Pin
a1_shay15-Jan-12 5:26
a1_shay15-Jan-12 5:26 
AnswerRe: in win32api how i create and use with dll file ? Pin
Richard MacCutchan15-Jan-12 5:43
mveRichard MacCutchan15-Jan-12 5:43 
Questionhow to read only integers from a file with c Pin
reemamjd15-Jan-12 3:01
reemamjd15-Jan-12 3:01 
AnswerRe: how to read only integers from a file with c Pin
venomation15-Jan-12 3:25
venomation15-Jan-12 3:25 
GeneralRe: how to read only integers from a file with c Pin
Richard MacCutchan15-Jan-12 3:34
mveRichard MacCutchan15-Jan-12 3:34 
GeneralRe: how to read only integers from a file with c Pin
reemamjd15-Jan-12 4:11
reemamjd15-Jan-12 4:11 
GeneralRe: how to read only integers from a file with c Pin
Richard MacCutchan15-Jan-12 4:58
mveRichard MacCutchan15-Jan-12 4:58 
QuestionRe: how to read only integers from a file with c Pin
David Crow15-Jan-12 16:24
David Crow15-Jan-12 16:24 
GeneralRe: how to read only integers from a file with c Pin
reemamjd15-Jan-12 18:45
reemamjd15-Jan-12 18:45 
GeneralRe: how to read only integers from a file with c Pin
David Crow16-Jan-12 3:13
David Crow16-Jan-12 3:13 
What you have will never work as you expect. The call to fgetc() is going to advance the file pointer, then fscanf() is going to be reading from the middle of some byte. Have you checked the return value from fscanf()? If it does not find a number to read from the file, it may be retaining the last read value.

Is your file laid out something like:

Name1,288,7099,441
Name2,1500
Name3,587,208

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous


Questionin win32api how can i make button shaded ? Pin
a1_shay14-Jan-12 11:51
a1_shay14-Jan-12 11:51 
AnswerRe: in win32api how can i make button shaded ? Pin
«_Superman_»14-Jan-12 15:58
professional«_Superman_»14-Jan-12 15:58 
Questionfunction pointers Pin
shiftwik14-Jan-12 10:08
shiftwik14-Jan-12 10:08 
AnswerRe: function pointers Pin
«_Superman_»14-Jan-12 16:23
professional«_Superman_»14-Jan-12 16:23 
GeneralRe: function pointers Pin
shiftwik14-Jan-12 18:42
shiftwik14-Jan-12 18:42 
QuestionDrawing Pin
columbos1492714-Jan-12 8:46
columbos1492714-Jan-12 8:46 
AnswerRe: Drawing Pin
«_Superman_»14-Jan-12 16:13
professional«_Superman_»14-Jan-12 16:13 
QuestionForm view is showing it's background on the screen. Pin
Amrit Agr13-Jan-12 23:33
Amrit Agr13-Jan-12 23:33 
AnswerRe: Form view is showing it's background on the screen. Pin
Richard MacCutchan14-Jan-12 3:27
mveRichard MacCutchan14-Jan-12 3:27 
Questionproblem with api messagebox Pin
a1_shay13-Jan-12 21:47
a1_shay13-Jan-12 21:47 

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.