CByteArrayFile -- A class used to serial - 项目摘要 |
摘要
| 管理 |
论坛 文档
| 软件包 |
|
|
|
项目描述: |
In my project, I need to serialize some object into database field with DAO. However, I can not find any support on serializing object into database field. I have to implemented one by myself.
In this example, I will show you a class named CByteArrayFile. It is a derive class of CMemFile. With this class, we can serialize object into CByteArray object. And then, we can use DFX_Binary to transfter data into database "long binary" field.
CByteArrayFile-- 一个通过连续加载对象到数据库域的类
在我的项目中,我需要通过DAO连续加载对象到数据库域。然而,我没有发现任何连续加载对象到数据库域的支持。我必须自己实现一个。
在这一个例子中,我将会像你介绍名为CByteArrayFile的类。它是CMemFile的继承类。通过这个类,我们可以连续加载对象到CByteArray对象数组。然后,我们可以使用transfter将数据转换为database "long binary" field。
来源: http://www.codeguru.com/mfc_database/SerializeObjectIntoDBField.shtml |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
SerializeObjectIntoDBField |
 1.0  |
2004-04-18 |
下载 |
|
|