使用文档串行化的,CArchive类
新手求指导!!
我的类继承了CObject了,在Serialize函数里面调用ar<<是错了如下错误、
rror C2678: binary '<<' : no operator defined which takes a left-hand operand of type 'class CArchi
我知道好像是我的成员变量类型不能写进去。但是我想要写进去。。怎么做。。
CList<CPoint,CPoint&> m_PointList;
LOGPEN m_penstruct;
LOGBRUSH m_brushstruct; //定义的成员变量
做了如下测试:
// ar<<;
//ar<<m_brushstruct<<m_penstruct<<m_PointList;
//int a=123;
ar<<m_brushstruct;
a可以写进去。。但是我的成员变量。。指教一下。、。