更新时间:2022-02-05 05:58:19
***不要使用CArchive,而是在文件中写入数据。如果您使用C的标准文件API,如 fopen ,则会获得可移植代码。
如果你编写一个结构,你可以使用写,你就完成了。
plz不要使用CArchive; - )
You better NOT use CArchive, but write data in a file. If you use the standard file API of C likefopen you get portable code.
If you write a struct you use write and you are done.
plz dont use CArchive ;-)
如果你只是将数据保存在内存中那么为什么你需要像一个CArchive?使用 STL容器类之一[ ^ ]。
If you are only keeping data in memory then why do you need something as complicated as a CArchive? Use one of the STL container classes[^].
我想你可以使用 CMemFile [ ^ ] CArchive
构造函数中的指针。
I guess you may use a CMemFile[^] pointer in the CArchive
constructor.