Could someone tell me what is wrong with the following code. I am getting errors when I try to load prefs. Also...it doesn't look like they are writing correctly either.
m_profIRCProfile is a Pointer to a CUserProfile...
CFile prefFile("userprefs.dat", CArchive::load);
CArchive arLoad(&prefFile, CArchive::load);
CUserProfile* ptrProf = (CUserProfile*) arLoad.ReadObject(RUNTIME_CLASS(CUserProfile));
m_profIRCProfile = new CUserProfile(ptrProf);
CFile myFile("userprefs.dat", CFile::modeCreate | CFile::modeReadWrite);
CArchive arStore(&myFile, CArchive::store);
Serialize is not getting called at all. I have DECLARE_SERIAL in the .h and IMPLEMENT_SERIAL in the .cpp. What is going on?