Visual C++ and MFC Programming 2nd Edition

(Martin Jones) #1

Visual C++ and MFC Fundamentals Chapter 12: Dialog-Based Windows



  1. Make sure you create the Windows Application in An Empty Project and click OK
    or Finish

  2. If you are using MSVC 6, on the main menu, click Project -> Settings...
    If you are using MSVC 7, in the Solution Explorer, right-click ExoDialog1 and click
    Properties...

  3. In the Property Pages, specify that you want to Use MFC in a Shared DLL

  4. Click OK

  5. To create the application class of the project, on the main menu, click File -> New or
    Project -> Add New Item...

  6. In the Files property page or int the Templates section, click C++ (Source) File. Set
    the File Name to Exercise and click OK or Open.

  7. To create the application, change the file as follows:
    #include <afxwin.h>


class CExerciseApp : public CWinApp
{
public:
BOOL InitInstance();
Free download pdf