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

Thread: CFile

Threaded View

  1. #10
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,244

    Re: CFile

    Quote Originally Posted by Paul McKenzie
    Second, that is really a weird requirement. What is the name of the class that is giving you this homework? Unless it is a class called "Using MFC in a console app" or something similar, I don't understand why using CFile would be a requirement -- it is more of a hindrance IMO if all you have is a console app and all you need is to read a file.

    Regards,

    Paul McKenzie
    Indeed it's really weird to learn MFC...

    Regards,
    Ovidiu

    @to OP:
    First, the good AppWizard can help you to avoid a lot of headaches in making your console application using MFC. It's so kind and will put for you all required header includes, libraries, and basic framework.
    Here is how to call it:
    • Visual Studio 6.0
      1. Select "File/New..." menu item or press "Ctrl+N".
      2. In "New" dialog, select "Projects" tab and choose "Win32 Console Application" from the list.
      3. Type in "Project name" field (e.g. "ConsMFC"), then push "OK".
      4. In "Win32 Console Application - Step 1 of 1" choose "An application that supports MFC".
      5. Hit "Finish"
    • Visual Studio 2005
      1. Select "File/New/Project..." menu item or press "Ctrl+Shift+N".
      2. In "New Project" dialog select project type "Visual C++/Win32" and the template "Win32 Console Application".
      3. Type the project name (e.g. "ConsMFC"), then push "OK".
      4. In "Win32 Application Wizard" click on "Application Settings" (or push "Next" button).
      5. Check "Add common header files for: MFC".
      6. Hit "Finish"

    Next, I will make a little sample application, trying to help solving your "homework assignment".
    Last edited by ovidiucucu; February 18th, 2007 at 06:38 AM.
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

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