Saving the List of Names
Task :
Continue with the previous task. Adapt the program so that the list of data may be saved to file (and then opened again).
Note : To allow saving/loading the TypedPtrList must be changed to inhereit from CObList and not CPtrList.
Instructions :
- Add a Serialize() function to the CName class. This should store the first and second name.
- Add code to the Serialize() function within the Document to so that the list will be called and then saved.
- Add further code so that when an old list is opened a current item will be selected.
Help :
The MSDN library again is the recommended source of help.
Click here for a worked example
Click here for the source code
Click here to return to menu