Win32: Creating a Simple Win32 Application 2008

Creating a Simple Win32 Application 2008

This Win32 video tutorial demonstrates how to create a simple Graphical User Interface (GUI) application. Win32 is the early GUI Application Programming Interface (API) and is the foundation for MFC. In fact, Win32 applications are C based and refer only to procedures, whereas MFC is C++ based and uses classes and object-oriented programming.

This lesson requires that you have an installed version of Visual C++ 2008. If you have Visual C++ 2005, you will need to make sure that you have installed the platform SDK. If you do not have Visual C++, you can follow the instructions in our C++ Console Lesson 0 video.

  1. Open Visual C++. Left-click "File" in the menubar, mouse over "New," and left-click "Project" in the submenu.
  2. Now the "New Project" dialog is open. Left-click "Win32" in the "Project Types:" box, and left-click "Win32 Project" in the "Templates:" box. Then left-click the box next to "Name:" and replace the text in the box with "Win32Lesson1." Finally, click the browse button to select a location for the project and click the "OK" button to finish the dialog.
  3. This brings up the "Win32 Application Wizard." Simply click the "Finish" button to create the project.
  4. With the project complete, we want to compile and execute the code by left clicking "Debug" in the menubar and "Start Without Debugging" in the submenu.
  5. A message box may pop-up asking you "Would you like to build it?" Click the "Yes" button.
  6. When the code is done compiling, you should see your application window.