list box in mfc, get data from file
I think this is the right place now.
I am trying to create an application which is a dialog box with a listbox, populated with data from a file.
Obviously i can create a simple mfc exe for the dialog, and add a listbox, but i dont seem to be able to find the right place to add the comment to put data in it. I was told that an InsertString could be used but I don't know where to put it.
I am using vc++
Any help people??
I think I found your problem.
>>C:\dave\mita\mitaDlg.cpp(119) : error C2039: 'AddString' : is not a member of 'CString'
>>c:\program files\microsoft visual studio\vc98\mfc\include\afx.h(368) : see declaration of 'CString'
When you created the member variable, did you change the catagory to Control? If you didn't you have to change the catagory to Control from Value. Delete the variable that you created the first time and add another variable and make these changes.
Sorry about that, I forget what I do behind the code sometimes.