Visual C++ and MFC Programming 2nd Edition

(Martin Jones) #1

Chapter 3: Windows Resources Visual C++ and MFC Fundamentals



  1. Click Finish

  2. In the Solution Explorer, Resource View, or Class View, right-click the Resources
    node and click Properties

  3. Specify that you want to Use MFC as a Shared DLL for your application and click
    OK

  4. Add a new item as a C++ file and name it Exercise

  5. Change its content as follows:


#include <afxwin.h>

class CResApp : public CWinApp
{
public:
BOOL InitInstance();
};

BOOL CResApp::InitInstance()
{
return TRUE;
}
Free download pdf