Using AppWizard
You saw the code used to create a windows application using MFC classes. Microsoft has made this process even easier by shipping several useful tools with VC++. One of them is the AppWizard. This program will walk you through a sequence of windows where you indicate your choices, and finally create the basic template with all the code necessary to support a window and several essential functions
While we will accept most of the default values, please verify against what you see in the images.
Start VC => New
We select the MFC AppWizard [exe]
Give the project a Name
Check the location for the directory
Choose OK
We came across SDI in VB
Note the classes automatically created for you
Check out the source code
Use the Left area of Screen and tab through Classes, Resource, and Files
Identify your main source file
check out the header file - especially the one corresponding to the main file
Bulid and Run the code:
The screen shot of the window
The toolbar and ment items are not dummy. Check them out
Here is the standard Open dialog window when you press the open button
Pretty Slick what !!!
Note the massive amount of code. How does it compare with what you did just before ?