刚入门的MFC问题
#include<afxwin.h>class CHelloApp:public CWinApp
{
public:
virtual BOOL InitInstance(); //虚函数
};
CHelloApp theApp; //建立实例
class CMainFrame:public CFrameWnd
{
public:
CMainFrame()
{
Create(NULL,"我的窗口",WS_OVERLAPPEDWINDOW,CRect(0,0,400,300));
}
protected:
afx_msg void OnLButtonDown(UINT nFlags,CPoint point);
DECLARE_MESSAGE_MAP()
};
BEGIN_MESSAGE_MAP(CMainFrame,CFrameWnd)
ON_WM_LBUTTONDOWN()
END_MESSAGE_MAP()
void CMainFrame::OnLButtonDown(UINT nFlags,CPoint point)
{
MessageBox("你好,我的Visual C++世界!","李亚运",0);
CFrameWnd::OnLButtonDown(nFlags,point);
}
BOLL CHelloApp::InitInstance()
{
m_pMainWnd=new CMainFrame();
m_pMainWnd->ShowWindow(m_nCmdShow);
m_pMainWnd->UpdateWindow();
return TRUE;
}
上述为代码,
C:\Documents and Settings\GWOLF18\桌面\垃圾\test\test.cpp(38) : error C2143: syntax error : missing ';' before 'tag::id'
C:\Documents and Settings\GWOLF18\桌面\垃圾\test\test.cpp(38) : error C2501: 'BOLL' : missing storage-class or type specifiers
C:\Documents and Settings\GWOLF18\桌面\垃圾\test\test.cpp(38) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
test.obj - 3 error(s), 0 warning(s)
这个是错误,怎么回事?