CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2010
    Posts
    389

    MFC CDocument File Open/Read source code needed

    Could anyone kindly provide a snippnet that would support opening and reading of a specific file in the same folder as the exe? Using CDocument (Don't know if that involves serialize)
    Using VS2008..
    Thanks
    Jack

  2. #2
    Join Date
    Jan 2003
    Location
    Wallisellen (Zürich), Switzerland
    Posts
    16,185

    Re: MFC CDocument File Open/Read source code needed

    What is the problem for you to write such a code yourself?
    Victor Nijegorodov

  3. #3
    Join Date
    Dec 2010
    Posts
    389

    Re: MFC CDocument File Open/Read source code needed

    I am just confused about the online examples and I don't have much reference here.
    Thanks
    Jack

  4. #4
    Join Date
    Jan 2003
    Location
    Wallisellen (Zürich), Switzerland
    Posts
    16,185

    Re: MFC CDocument File Open/Read source code needed

    Well, if you don't want to make your job (writing code) yourself then either change the job, or hire a coder that will do that job for you or just use Google search for a code example you need...
    Victor Nijegorodov

  5. #5
    GCDEF is offline Elite Member Power Poster GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+) GCDEF has a reputation beyond repute (3000+)
    Join Date
    Nov 2003
    Posts
    11,580

    Re: MFC CDocument File Open/Read source code needed

    The framework does the opening and reading for you. Just create an MDI or SDI app and it will give you all the code to open and read CDocument derived objects. All you need to do is override the Serialize method. There really isn't much to it.

    http://msdn.microsoft.com/en-us/libr...(v=vs.71).aspx

+ Reply to Thread

Bookmarks

Posting Permissions

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



HTML5 Development Center

Click Here to Expand Forum to Full Width