Saving List Items to Disk
Posted on 2003-11-04
I have the following code in my project:
CFile fileServLst("servlist.dat", CFile::modeCreate | CFile::modeReadWrite);
CArchive arStore(&fileServLst, CArchive::store);
POSITION aPos = m_listServers.GetHeadPosition();
temp = m_listServers.GetNext(aPos);
It is supposed to go through a CTypedPtrList and save each item to disk..one by one. Right now...I am getting a dialog box that pops up and says "An unsupported operation was attempted"...never seen that before. Can anyone help tell me what is going on here?