小段代码,提示fatal error C1010: unexpected end of file while looking for precompiled header directive不知道怎么解决?谢谢
// vc4_singleSample.cpp : Defines the entry point for the application.
//
#include <afxwin.h>
#include "vc4_singleSample.h"
CMyApp theapp;
bool CMyApp::InitInstance()
{
m_pMainWnd = new CMyFrame;
m_pMainWnd->ShowWindow(m_nCmdShow);
m_pMainWnd->UpdateWindow();
return true;
}
DECLARE_MESSAGE_MAP(CMyFrame,CFrameWnd)
ON_WM_PAINT()
END_MESSAGE_MAP()
CMyFrame::CMyFrame()
{
Create(NULL,"SFDFD FDS");
}
void CMyFrame::OnPaint()
{
CPaint dc(this);
dc.TextOut(0,0,"afefefefefefefefef");
}
///////////////vc4_singleSample.h/////////////
#include <afxwin.h>
class CMyApp : public CWinApp
{
public :
virtual bool InitInstance();
};
class CMyFrame : public CFrameWnd
{
public:
CMyFrame();
protected:
afx_msg void OnPaint();
DECLARE_MESSAGE_MAP()
};