Introduction to MFC - The First MFC Program and the Basics
(Page 3 of 5 )
Now we are done with talking. The time has come to act, do something valuable, demonstrate something and not just discuss. Start up your Visual Studio and follow the path: File->New->Project... and click. You will get to the image below. Then choose according to the image (you may select a different path). We want to create an application for now with the name “MFC_example.”

Click OK and the AppWizard will appear. This is the utility that does all the nasty work for us.
We can now set up the main basic options for every application. This is what AppWizard offers: it creates the model, the so-called sketch for each application. We don't need to write the standard codes that all applications require to work properly over and over again. The AppWizard automates it.

At any point you can push the finish button, if you are sure that the default options fit your need(s). Go on with the default settings for now, since they will be okay. Modifying the options will be covered in the next article.
After the creation process ends, you can build and start up the program. Kudos, you’ve just finished your first application. It will work, but it won't be very useful. Just as a newly-built home needs to be decorated, our application must be extended by our code, to add some functionality to it.
Another thing remains unresolved. We need to grasp why each file was created and what they represent. The created file names depend on the chosen name of the application. I will note the parts that depend upon the aforementioned application name with the help of the italic font styling.
Next: Explaining the File Names and Extending the Application >>
More BrainDump Articles
More By Gabor Bernat