use CDocument::GetFile method,then get a pointer to a CFile object.
and you can use CFile::Write method write it into file.
and you can use CFile::Write method write it into file.
解决方案 »
- 单文档程序
- error C2059: syntax error : 'constant' 是什么意思?郁闷!
- ∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞CMenu 问题一个∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞
- 急!!关于xml的问题,在线等!
- 跪求视频格式转换的DLL(2)
- Jeffrey Richter著<Programming Server-side Application for Microsoft Windows>现在还有卖吗?
- 在dll中调用LoadImage问题
- 求救,我只有一天时间了!多线程用odbc的执行存储过程出错,告急!
- MFC背景BMP图片
- 救急!!!
- 如何判断串口端口的个数
- 请问中距离(<100KM)数据访问一般采用什么方案。
1. #include "writefileview.h" //在文档类中加入视图的头文件
2. 在文档的Serialize 函数的末尾加入以下代码:
((CWritefileView *) m_viewList.GetHead())->SerializeRaw(ar);
3. 修改资源文件中的相关字符串,将保存文件的扩展名改为TXT。
用CFile类来控制, 更加方便!!
可以用GetEditCtrl() 来得到视图中CEdit的对象指针。
还可以创建自己的Archive类,让它和CFile 对象关连等。
还是用CFile类实现吧,如wxjz2(macx) 所述