#ifndef SERIALV_H #define SERIALV_H ///////////////////////////////////////////////////////////////////////// // SeriaVer1.h - demonstrate reading and writing with CArchive // // // // Changyong Shi, CSE791 - Advanced Windows Programming, Summer 2001 // ///////////////////////////////////////////////////////////////////////// #include "stdafx.h" class CMyclass:public CObject{ DECLARE_SERIAL (CMyclass) protected: int m_a; int m_b; int m_c; public: CMyclass(){} CMyclass (int a, int b, int c) {m_a = a; m_b = b;m_c=c;} int sum (){return (m_a + m_b + m_c );} void Serialize (CArchive& ar); }; #endif