PDA

View Full Version : List in VC++


Aymen++
07-26-2005, 10:22 AM
hi all...
i wanna add a button to my main dialog baised project in VC++ V6. when the user clicks on the button, a new dialog will be displayed, this dialog contains a list box and the user can add and remove items from this list by another button. i want the contents of this list box be saved, i mean when the user close the new dialog and open it he will not see the deleted items or he will see the added items in the list box...
can anybody help me?
thanx in advance...

aman
07-26-2005, 10:40 PM
What is your question about, using a listbox or saving data? Do you want to save the data to file or do you want to save it temporarily to memory?

Aymen++
07-27-2005, 03:34 AM
i wanna save it temporarly in memory...

aman
07-27-2005, 05:12 AM
Ok well you can store it in a linked list, an array of data, or preferably if you're familiar with STL containers then store your data in a vector or list, whichever is best for your situation.