//hello.h
#include <afxwin.h>class CMyApp:public CWinApp
{
public:
virtual BOOL InitInstance( );
 
};class CMainWindow:public CFrameWnd
{
public:
CMainWindow();
protected:
afx_msg void OnPaint();
DECLARE_MESSAGE_MAP()};
//hello.cpp
#include "hello.h"CMyApp theApp;BOOL CMyApp::InitInstance( )
{
m_pMainWnd = new CMainWindow();
m_pMainWnd->ShowWindow(SW_SHOWNORMAL);
m_pMainWnd->UpdateWindow();
return TRUE;
}BEGIN_MESSAGE_MAP( CMainWindow, CFrameWnd )
    ON_WM_PAINT()
END_MESSAGE_MAP()CMainWindow::CMainWindow()
{
Create(NULL, _T("The Hello Application"));
}
void CMainWindow::OnPaint()
{
CPaintDC dc(this);
CRect rect; GetClientRect(&rect);

dc.DrawText(_T("Hello,MFC"), &rect, DT_CENTER || DT_VCENTER);}其中在cpp文件中创建了CWinApp对象但是编译无法通过,报错无法找到入口程序。
那位帮忙解释一下为甚??