|
-
February 18th, 2007, 06:34 AM
#10
Re: CFile
 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
- Select "File/New..." menu item or press "Ctrl+N".
- In "New" dialog, select "Projects" tab and choose "Win32 Console Application" from the list.
- Type in "Project name" field (e.g. "ConsMFC"), then push "OK".
- In "Win32 Console Application - Step 1 of 1" choose "An application that supports MFC".
- Hit "Finish"
- Visual Studio 2005
- Select "File/New/Project..." menu item or press "Ctrl+Shift+N".
- In "New Project" dialog select project type "Visual C++/Win32" and the template "Win32 Console Application".
- Type the project name (e.g. "ConsMFC"), then push "OK".
- In "Win32 Application Wizard" click on "Application Settings" (or push "Next" button).
- Check "Add common header files for: MFC".
- 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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|