Hi. Im about to start MFC programming with Visual C++. I choose book "Programming windows with MFC second edition by Jeff Prosise. But the problem is, on it's very first example it contains some code like this..
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Hello.h
class CMyApp : public CWinApp
{
public:
virtual BOOL InitInstance ();
};
class CMainWindow : public CFrameWnd
{
public:
CMainWindow ();
protected:
afx_msg void OnPaint ();
DECLARE_MESSAGE_MAP ()
};
This is all. No ChildView.cpp s or MainFrm.cpp s.
And he doesn't explain how he started with those two files. Just codes. But when I create new MFC application with visual C++ (2013) it generates much more files than Hello.h and Hello.cpp.
And some of them contains some thing like
1 2 3 4 5
class CMyApp : public CWinApp
{
public:
virtual BOOL InitInstance ();
};
But not as plain as the example from the book.
So I want to know if is there anyway to start MFC programming with empty MFC project ? Those extra things makes it tricky.