CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: open a file

  1. #1
    Join Date
    Apr 1999
    Posts
    79

    open a file

    Hello:
    I have a simple question.
    I know VC++6.0 MFC DOCument can auto open
    a file use:
    Void MyDoc::Serialize(CArchive& ar){
    if(ar.IsStoring())
    {
    ar>>m_n}
    else{
    ar<<m_n}
    }
    But I need open a data file and read it from head to end.
    and one word(EX."a" or "b"...).I know use c is easy.But VC++6.0
    MFC??
    Would you help me?
    Yoh-Hei



  2. #2
    Join Date
    May 1999
    Posts
    17

    Re: open a file

    You could use 'CFile' or a 'memory mapped file'


  3. #3
    Join Date
    Apr 1999
    Posts
    79

    Re: open a file

    Hello:
    But "CFile" or "memory mapped file",I don't know
    how to make code in VC++6.0 MFC?How to start?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured