New partnership with Harvard Business Publishing Education
Home
Harvard Business Publishing: Vinay Hebbar Appointed As Senior Vice President
Harvard Business Publishing
Harvard Business Publishing Corporate Learning
Student Home
COMMENTS
MSVC/MFC File Processing: Serialization
The MFC library has a high level of support for serialization. It starts with the CObject class that is the ancestor to most MFC classes. This CObject class is equipped with a member function named Serialize.Its syntax is: virtual void Serialize(CArchive& ar); As you can see, this member function takes a CArchive object as argument. This is the object that holds the value(s) to be be saved.
IMAGES
COMMENTS
The MFC library has a high level of support for serialization. It starts with the CObject class that is the ancestor to most MFC classes. This CObject class is equipped with a member function named Serialize.Its syntax is: virtual void Serialize(CArchive& ar); As you can see, this member function takes a CArchive object as argument. This is the object that holds the value(s) to be be saved.