Click here to Skip to main content
15,919,245 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow do I get recurring events from holding a button down? Pin
doug2518-Sep-11 7:51
doug2518-Sep-11 7:51 
AnswerRe: How do I get recurring events from holding a button down? Pin
enhzflep18-Sep-11 8:06
enhzflep18-Sep-11 8:06 
GeneralRe: How do I get recurring events from holding a button down? Pin
doug2518-Sep-11 8:49
doug2518-Sep-11 8:49 
GeneralRe: How do I get recurring events from holding a button down? Pin
enhzflep18-Sep-11 10:38
enhzflep18-Sep-11 10:38 
GeneralRe: How do I get recurring events from holding a button down? Pin
doug2519-Sep-11 4:03
doug2519-Sep-11 4:03 
GeneralRe: How do I get recurring events from holding a button down? Pin
enhzflep19-Sep-11 4:12
enhzflep19-Sep-11 4:12 
GeneralRe: How do I get recurring events from holding a button down? Pin
Code-o-mat18-Sep-11 22:12
Code-o-mat18-Sep-11 22:12 
QuestionReading problem Pin
manju 317-Sep-11 18:40
manju 317-Sep-11 18:40 
Hi all,
I am trying to read from text file using fscanf.But i am getting only last string.
Here is the code i am trying

FILE *p;
	CString first,second;
	
	p=fopen("E:\\Test.txt","r");	
	fscanf(p,"FirstName=%s",first);
	fscanf(p,"SecondName=%s",second);	
	AfxMessageBox(first);
	AfxMessageBox(second);


Here is the Text.txt file content:

FirstName=ee
SecondName=pp


But i am getting only first value "ee" in message box.where i am going wrong

Thanks
manju
AnswerRe: Reading problem Pin
Erudite_Eric17-Sep-11 20:59
Erudite_Eric17-Sep-11 20:59 
AnswerRe: Reading problem Pin
«_Superman_»18-Sep-11 4:14
professional«_Superman_»18-Sep-11 4:14 
AnswerRe: Reading problem Pin
CPallini18-Sep-11 22:01
mveCPallini18-Sep-11 22:01 
QuestionRe: Reading problem Pin
David Crow19-Sep-11 3:24
David Crow19-Sep-11 3:24 
QuestionHow to handle Column Click in a multi column list box Pin
Amrit Agr17-Sep-11 1:41
Amrit Agr17-Sep-11 1:41 
QuestionRe: How to handle Column Click in a multi column list box Pin
Richard MacCutchan17-Sep-11 3:03
mveRichard MacCutchan17-Sep-11 3:03 
AnswerRe: How to handle Column Click in a multi column list box Pin
Amrit Agr18-Sep-11 19:25
Amrit Agr18-Sep-11 19:25 
GeneralRe: How to handle Column Click in a multi column list box Pin
Richard MacCutchan18-Sep-11 23:04
mveRichard MacCutchan18-Sep-11 23:04 
GeneralRe: How to handle Column Click in a multi column list box Pin
David Crow19-Sep-11 3:26
David Crow19-Sep-11 3:26 
GeneralRe: How to handle Column Click in a multi column list box Pin
Richard MacCutchan19-Sep-11 4:00
mveRichard MacCutchan19-Sep-11 4:00 
GeneralRe: How to handle Column Click in a multi column list box Pin
David Crow19-Sep-11 4:40
David Crow19-Sep-11 4:40 
JokeRe: How to handle Column Click in a multi column list box Pin
Richard MacCutchan19-Sep-11 5:04
mveRichard MacCutchan19-Sep-11 5:04 
AnswerRe: How to handle Column Click in a multi column list box - caution long post Pin
enhzflep19-Sep-11 15:41
enhzflep19-Sep-11 15:41 
QuestionShellExecuteEx for windows7 Pin
MKC00216-Sep-11 22:47
MKC00216-Sep-11 22:47 
AnswerRe: ShellExecuteEx for windows7 Pin
Software_Developer17-Sep-11 10:53
Software_Developer17-Sep-11 10:53 
AnswerRe: ShellExecuteEx for windows7 Pin
Philippe Mori17-Sep-11 14:27
Philippe Mori17-Sep-11 14:27 
GeneralRe: ShellExecuteEx for windows7 Pin
MKC00219-Sep-11 7:00
MKC00219-Sep-11 7:00 

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.