Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.4 KB

serialization-serializing-an-object.md

File metadata and controls

24 lines (16 loc) · 1.4 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: Serialization: Serializing an Object
Serialization: Serializing an Object
11/04/2016
serializing objects [MFC]
serialization [MFC], objects
objects [MFC], serializing
1db772b1-ad55-4fcf-b133-126cca082510

Serialization: Serializing an Object

The article Serialization: Making a Serializable Class shows how to make a class serializable. Once you have a serializable class, you can serialize objects of that class to and from a file via a CArchive object. This article explains:

You can let the framework create the archive for your serializable document or explicitly create the CArchive object yourself. You can transfer data between a file and your serializable object by using the << and >> operators for CArchive or, in some cases, by calling the Serialize function of a CObject-derived class.

See also

Serialization