seialize好象一般在自己做的程序中实现序列化,而读别的文件的话用CFile 或CStdioFile之类的吧(函数看msdn吧)

解决方案 »

  1.   

    听说CFile存取可以随机存取,是这样吗?随机存取什么意思?
      

  2.   

    CArchive类用于流式文件Read,Write用于数据块类型的文件
      

  3.   

    至于serialize,主要是因为MFC封装了部分容错和处理,在CDocumnet中直接提供给开发者书写文件读取的接口,简化编程。实际上不用它也可以,看你具体要做什么
      

  4.   

    随机一般用seek来定位,如你可能从文件开头地100个字节读,就要用到随机读取
    随机定位的函数:
    Seek Positions the current file pointer. 
    SeekToBegin Positions the current file pointer at the beginning of the file. 
    SeekToEnd Positions the current file pointer at the end of the file. 
    GetLength Retrieves the length of the file. 
    SetLength Changes the length of the file. 
      

  5.   

    谢谢各位了,我现在看到多线程了,(vc书)
    我是否还继续看下面的dll,activex,ole介绍,
    还是换看关于com的介绍。请指点。