Click here to Skip to main content
15,886,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCRectTracker static linking Pin
bob1697224-Sep-07 5:58
bob1697224-Sep-07 5:58 
AnswerRe: CRectTracker static linking Pin
Mark Salsbery24-Sep-07 6:36
Mark Salsbery24-Sep-07 6:36 
GeneralRe: CRectTracker static linking Pin
bob1697224-Sep-07 7:31
bob1697224-Sep-07 7:31 
Questiongraphics in c++ console program Pin
Sai Yasodharan24-Sep-07 5:58
Sai Yasodharan24-Sep-07 5:58 
AnswerRe: graphics in c++ console program Pin
bob1697224-Sep-07 6:06
bob1697224-Sep-07 6:06 
GeneralRe: graphics in c++ console program Pin
Matthew Faithfull24-Sep-07 6:14
Matthew Faithfull24-Sep-07 6:14 
AnswerRe: graphics in c++ console program Pin
El Corazon24-Sep-07 8:19
El Corazon24-Sep-07 8:19 
Questionread array of file names with CString array ? Pin
mrby12324-Sep-07 5:54
mrby12324-Sep-07 5:54 
Thanks for the help.

I am trying to use the following code to read an array of file names. However,
I found all the ftitle[i] used the same memery as ftitle[0]. So after the code read all the array, all array of ftitle[0],ftitle[1],ftitle[2] have all the same value of ftitle[2]: "dogfile3"

CString ftitle[10];


for (i=0;i {
fscanf( f_ptr3,"%s\n", ftitle[i]);
}
//

input data file:
dogfile1
dogfile2
dogfile3

Please help me how to read array of filenames correctly with array of CString?

Thanks a lots

AnswerRe: read array of file names with CString array ? Pin
Chris Losinger24-Sep-07 6:02
professionalChris Losinger24-Sep-07 6:02 
GeneralRe: read array of file names with CString array ? [modified] Pin
mrby12324-Sep-07 6:06
mrby12324-Sep-07 6:06 
GeneralRe: read array of file names with CString array ? Pin
Chris Losinger24-Sep-07 6:15
professionalChris Losinger24-Sep-07 6:15 
GeneralRe: read array of file names with CString array ? Pin
Vaclav_24-Sep-07 6:09
Vaclav_24-Sep-07 6:09 
GeneralRe: read array of file names with CString array ? Pin
Chris Losinger24-Sep-07 6:14
professionalChris Losinger24-Sep-07 6:14 
QuestionRe: read array of file names with CString array ? Pin
David Crow24-Sep-07 6:17
David Crow24-Sep-07 6:17 
AnswerRe: read array of file names with CString array ? Pin
mrby12324-Sep-07 6:24
mrby12324-Sep-07 6:24 
QuestionRe: read array of file names with CString array ? Pin
David Crow24-Sep-07 6:38
David Crow24-Sep-07 6:38 
AnswerRe: read array of file names with CString array ? Pin
mrby12324-Sep-07 6:47
mrby12324-Sep-07 6:47 
QuestionRe: read array of file names with CString array ? Pin
David Crow24-Sep-07 6:57
David Crow24-Sep-07 6:57 
AnswerRe: read array of file names with CString array ? Pin
Vaclav_24-Sep-07 6:07
Vaclav_24-Sep-07 6:07 
QuestionRe: read array of file names with CString array ? Pin
David Crow24-Sep-07 6:14
David Crow24-Sep-07 6:14 
AnswerRe: read array of file names with CString array ? Pin
mrby12324-Sep-07 6:41
mrby12324-Sep-07 6:41 
GeneralRe: read array of file names with CString array ? Pin
David Crow24-Sep-07 6:52
David Crow24-Sep-07 6:52 
QuestionActivex in mfc Pin
saisp24-Sep-07 5:14
saisp24-Sep-07 5:14 
AnswerRe: Activex in mfc Pin
nbugalia24-Sep-07 19:01
nbugalia24-Sep-07 19:01 
QuestionFirst chance exception Pin
Waldermort24-Sep-07 4:19
Waldermort24-Sep-07 4:19 

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.