ReadClass & WriteClass
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
hi, everybody I'm using CArchive constructed on CSocketFile and i'm trying to serialize CMsg objects like this : (note : ar is my archive and msg my message to serialize) ar.WriteClass(msg.GetRuntimeClass()); //it works fine ar.WriteObject(&msg); //works fine and at the other side of the network i have : CRuntimeClass * pClass = ar.ReadClass(); //this throw me an error CArchiveExceptionError::badIndex Any ideas about this ?