DECLARE_SERIAL与IMPLEMENT_SERIAL的具体用法
我把CLine类具有序列化,要在头文件和源文件分别添加上面两个宏,但是我在类定义内部加上DECLARE_SERIAL(你的类名),不需要引号,如 class CMyClass: public CObject { public: CMyClass( ); void Serialize( CArchive& archive ); DECLARE_SERIAL( CmyClass ) }; 在类的实现文件开始加上IMPLEMENT_SERIAL()。
DECLARE_SERIAL的概念
”the serializable class drawline does not decla请问Java运行时出现”the serializable class drawline does not declareThe serializable class XXX does not declare a static final serialVersionUID field of type long 可序列化的类 CreateBPOVIEW 未声明类型为 long 的静态终态 serialVersionUID 字 段 serialVersionUID作用: 序列化时为了保持版本的兼容性。