error:c:\program files\microsoft visual studio\myprojects\hello\hello.cpp(96) : fatal error C1010: unexpected end of file while looking for precompiled header directive
// button1.cpp#include <afxwin.h>#define IDB_BUTTON 100;// Declare the application classclass CButtonApp : public CWinApp{public:virtual BOOL InitInstance();};// Create an instance of the application classCButtonApp ButtonApp; // Declare the main window classclass CButtonWindow : public CFrameWnd{ CButton *button;public:CButtonWindow();};// The InitInstance function is called once// when the application first executesBOOL CButtonApp::InitInstance(){m_pMainWnd = new CButtonWindow();m_pMainWnd->ShowWindow(m_nCmdShow);m_pMainWnd->UpdateWindow();return TRUE;}// The constructor for the window classCButtonWindow::CButtonWindow(){ CRect r;// Create the window itselfCreate(NULL, "CButton Tests", WS_OVERLAPPEDWINDOW,CRect(0,0,200,200));
// Get the size of the client rectangleGetClientRect(&r);r.InflateRect(-20,-20);
// Create a buttonbutton = new CButton();button->Create("Push me",WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON,r,this,IDB_BUTTON);
}