I have created a STL List<customer> customer_list with several detail properties. all works fine.
However I now need to store a list of string for each customer. I have added a STL List<string> string_list to the customer object which is accessible the problem is the data in the list is not persisted.
Is it possible to have a list within a list? what could be the reason for the list not persisting the data?
Although it is possible to have a list within a list, it would help if you could post some relevant code.
You should use the STL vector class instead of a list if you do not do insertions and deletions from the middle of the list.
«_Superman_» I love work. It gives me something to do between weekends.
In Visual Studio, use #import.
It generates (and includes in your project) two files, with the extensions .tlh and .tli (short for 'type library header' and 'type library include'), and automatically includes them in your project.
You'll find more in the documentation for #import.
Hope this helps,
"Accident: An inevitable occurrence due to the action of immutable natural laws." (Ambrose Bierce, circa 1899).
Yes, it seems to work for me , but when I try to export to .h file
i have the error message :
OLEViewer 2.0 Interface Viewers
Error running MIDL.exe: 2
You want to show 3 simultaneous progress bars? What's the process that will be updating them? ...You should not access any dialog items directly from an independent thread like that, instead, send a message to the dialog via PostMessage() telling it to update whatever progress bar you want to update. Within your dialog class, have a message handler that updates the progress bar accordingly.