Chapter 2 Variables and Identifiers Visual C++ and MFC Fundamentals
- Create a C++ Source File and Name it Exercise
Figure 19: ADd New Item - Windows Fundamentals..............................................................
- Click Open
- To create the application, change the file as follows:
#include <afxwin.h>
struct CSimpleApp : public CWinApp
{
BOOL InitInstance() { return TRUE; }
};
CSimpleApp theApp;
- To test the application, press Ctrl + F5
Figure 20: Microsoft Development Environment - Message Box.........................................
- When asked whether you would like to build the project, click Yes
- Nothing will appear because we did not define an expected behavior