我在MFC 项目中CMainForm加载了CMfcTaskPane对象,然后项目串行化后运行了程序,保存为可执行 XX.dp 文件,双击这个自定义文件,结果无法使CMfcTaskPane 更新数据内容。问题2:双击自定义可执行文件.dp文件的执行顺序?
问题1: CMfcTaskPane是否可串行化?

解决方案 »

  1.   

    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). Overriding the Serialize member function. Using the DECLARE_SERIAL macro in the class declaration. Defining a constructor that takes no arguments. 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. 
      

  2.   

    双击自定义可执行文件.dp文件的执行顺序呢?还有CMfcTaskPane 进行串行化 和 OnDraw 关系?