Click here to Skip to main content
16,005,037 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionresizable tree control? Mark Salsbery pls come in Pin
nathan73-May-07 17:17
nathan73-May-07 17:17 
QuestionRe: resizable tree control? Mark Salsbery pls come in Pin
David Crow4-May-07 2:58
David Crow4-May-07 2:58 
AnswerRe: resizable tree control? Mark Salsbery pls come in Pin
Mark Salsbery4-May-07 6:59
Mark Salsbery4-May-07 6:59 
GeneralRe: resizable tree control? Mark Salsbery pls come in Pin
nathan76-May-07 23:24
nathan76-May-07 23:24 
QuestionJavascript / DOM Implementing on C++ Pin
Freezerg3-May-07 17:13
Freezerg3-May-07 17:13 
QuestionAccessing data from IE to an application Pin
sweetmonster4073-May-07 14:00
sweetmonster4073-May-07 14:00 
AnswerRe: Accessing data from IE to an application Pin
George L. Jackson3-May-07 16:52
George L. Jackson3-May-07 16:52 
Questionsscanf problem Pin
acerunner3163-May-07 13:45
acerunner3163-May-07 13:45 
I am trying to read values from from a text file using sscanf. The file contains numberic values but I want to read them in as strings, each line at a time. Values are listed as shown:

example text file:
1.000 2.000
3.000 4.000
5.000 6.000
...


Here is the code.
CStdioFile LFileData;<br />
...<br />
LFileData.ReadString(LCStrReadStr);<br />
MessageBox(LCStrReadStr);<br />
sscanf(LCStrReadStr, "%s %s", LCStrTemp1, LCStrTemp2);


The problem is that both LCStrTemp1 and LCStrTemp2 is getting the value of the 2nd column only. The first column is lost. I outputted LCStrReadStr using MessageBox to make sure it was correct. It is. So that problem is in sscanf. Why am I not getting the right values?

Thanks in advance.
QuestionRe: sscanf problem Pin
Mark Salsbery3-May-07 13:53
Mark Salsbery3-May-07 13:53 
AnswerRe: sscanf problem Pin
acerunner3163-May-07 14:00
acerunner3163-May-07 14:00 
GeneralRe: sscanf problem Pin
Mark Salsbery3-May-07 14:14
Mark Salsbery3-May-07 14:14 
GeneralRe: sscanf problem Pin
acerunner3163-May-07 14:29
acerunner3163-May-07 14:29 
GeneralRe: sscanf problem [modified] Pin
Mark Salsbery3-May-07 14:39
Mark Salsbery3-May-07 14:39 
QuestionCisual C++/MFC Technical Training Pin
JatinerS3-May-07 13:40
JatinerS3-May-07 13:40 
AnswerRe: Cisual C++/MFC Technical Training Pin
Mark Salsbery3-May-07 13:47
Mark Salsbery3-May-07 13:47 
QuestionCan a Manged Control be used in a CScrollView Window? Pin
earlgraham3-May-07 12:57
earlgraham3-May-07 12:57 
AnswerRe: Can a Manged Control be used in a CScrollView Window? Pin
Mark Salsbery3-May-07 13:40
Mark Salsbery3-May-07 13:40 
GeneralRe: Can a Manged Control be used in a CScrollView Window? Pin
earlgraham4-May-07 12:00
earlgraham4-May-07 12:00 
GeneralRe: Can a Manged Control be used in a CScrollView Window? Pin
Mark Salsbery4-May-07 13:02
Mark Salsbery4-May-07 13:02 
QuestionMFC State Question (Calling MFC UI objects from non-UI objects) Pin
mevatron13-May-07 12:09
mevatron13-May-07 12:09 
QuestionRe: MFC State Question (Calling MFC UI objects from non-UI objects) Pin
Mark Salsbery3-May-07 12:39
Mark Salsbery3-May-07 12:39 
AnswerRe: MFC State Question (Calling MFC UI objects from non-UI objects) Pin
mevatron14-May-07 3:21
mevatron14-May-07 3:21 
GeneralRe: MFC State Question (Calling MFC UI objects from non-UI objects) Pin
Mark Salsbery4-May-07 5:15
Mark Salsbery4-May-07 5:15 
GeneralRe: MFC State Question (Calling MFC UI objects from non-UI objects) Pin
mevatron14-May-07 11:24
mevatron14-May-07 11:24 
GeneralRe: MFC State Question (Calling MFC UI objects from non-UI objects) Pin
Mark Salsbery4-May-07 11:39
Mark Salsbery4-May-07 11:39 

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.