MFC CDocument File Open/Read source code needed
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: MFC CDocument File Open/Read source code needed

  1. #1
    Join Date
    Dec 2010
    Posts
    593

    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
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,360

    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
    593

    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
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,360

    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
    Join Date
    Nov 2003
    Posts
    12,069

    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

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center