阅读背景:

转换CArchive以使用SQL数据库进行序列化的最简单方法?

来源:互联网 

I have an existing application that uses CArchive to serialize a object structure to a file. I am wondering if can replace the usage of CArchive with some custom class to write to a database the same way that things are serialized. Before I go about figuring if this is doable I was wondering if other people have done the same- what is the best approach to this problem? I would like to be able to create a drop in replacement for the usage of CArchive so that the existing object structure would simply read/write to/from a database rather than a serialized file. Is it as simple as overwriting the Serialize method for each class? I have an existing application that uses CArchi




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: