MFC Step-by-Step Guide

Tutorial 1

Simple Dialog Based MFC Application


GOAL: To gain understanding of the GUI API and basic MFC Dialog Window
PREREQUISITES: none

Creating the Dialog Window
  1. Open Microsoft Visual Studio .NET IDE
  2. Click the menu item File >> New >> Project...
  3. In the 'New Project' Window, select
    1. Project Types: Visual C++ Projects
    2. Templates: MFC Application
    3. Select a Name and Location for the application. (We will name ours Tutorial inside a project created folder)
    Figure 1.1 - New Dialog Project
    Figure 1.1 - New Dialog Project
  4. In the 'MFC Application Wizard' window,
    1. Under Application Type select
      1. Dialog Based
      2. MFC Standard
      3. Use MFC in a shared DLL
    2. Under User Interface Features: un-check all boxes
    3. Under Advanced Features: un-check all boxes
    4. Click Finish
    Figure 1.2 - App Wizard
    Figure 1.2 - Application Wizard
  5. In the Visual Studio project window, click
    1. Build >> Build Solution
    2. Debug >> Start to run

» Written by William Frankhouser (wjf2@washington.edu)
» Advised by Kelvin Sung (ksung@washington.edu) as part of the project sponsored by the National Science Foundation under Grant No. 0442420. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.
» Produced in the "Essential Concepts for Building Interactive Computer Graphics Applications", A.K. Peters, Ltd.