积极答复者
对类对象的文件读写操作

问题
答案
-
Serialization: Making a Serializable Class Five main steps are required to make a class serializable. They are listed below and explained in the following sections:
-
Deriving your class from CObject (or from some class derived from CObject).
-
Using the DECLARE_SERIAL macro in the class declaration.
-
Using the IMPLEMENT_SERIAL macro in the implementation file for your class.
If you call Serialize directly rather than through the >> and << operators of CArchive, the last three steps are not required for serialization.
Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.- 已标记为答案 公羊羽 2011年5月19日 11:54
-
全部回复
-
Serialization: Making a Serializable Class Five main steps are required to make a class serializable. They are listed below and explained in the following sections:
-
Deriving your class from CObject (or from some class derived from CObject).
-
Using the DECLARE_SERIAL macro in the class declaration.
-
Using the IMPLEMENT_SERIAL macro in the implementation file for your class.
If you call Serialize directly rather than through the >> and << operators of CArchive, the last three steps are not required for serialization.
Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.- 已标记为答案 公羊羽 2011年5月19日 11:54
-