Visual C++ and MFC Fundamentals Chapter 12: Dialog-Based Windows
- Make sure you create the Windows Application in An Empty Project and click OK
or Finish - 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... - In the Property Pages, specify that you want to Use MFC in a Shared DLL
- Click OK
- To create the application class of the project, on the main menu, click File -> New or
Project -> Add New Item... - 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. - To create the application, change the file as follows:
#include <afxwin.h>
class CExerciseApp : public CWinApp
{
public:
BOOL InitInstance();