unexpected end of file found
来源:互联网 发布:网页自动答题软件 编辑:程序博客网 时间:2024/04/29 16:08
#include <afxwin.h>
#define IDB_BUTTON 100
class Cbutton3App:public CWinApp
{
public:
virtual BOOL InitInstance();
};
Cbutton3App button3App;
class Cbutton3Window:public CFrameWnd
{
CButton* button;
public:
Cbutton3Window();
afx_msg void HandleButton();
afx_msg void OnSize(UINT ,int ,int );
DECLARE_MESSAGE_MAP()
};
void Cbutton3Window::HandleButton()
{
MessageBeep(-1);
}
void Cbutton3Window::OnSize(UINT nType,int cx,int cy)
{
CRect r;
GetClientRect(&r);
r.InflateRect(-20,-20);
button->MoveWindow(r);
}
BEGIN_MESSAGE_MAP(Cbutton3Window,CFrameWnd)
ON_BN_CLICKED(IDB_BUTTON,HandleButton)
ON_WM_SIZE()
END_MESSAGE_MAP()
BOOL Cbutton3App::InitInstance()
{
m_pMainWnd=new Cbutton3Window();
m_pMainWnd->ShowWindow(m_nCmdShow);
m_pMainWnd->UpdateWindow();
return true;
}
class Cbutton3Window::Cbutton3Window()
{
CRect r;
Create(NULL,"Cbutton test",WS_OVERLAPPEDWINDOW,CRect(0,0,200,200);
GetClientRect(&r);
r.InflateRect(-20,-20);
button=new CButton();
button->Create("Push me",WS_CHILD|WS_VISIBLE|BS_PUSHBUTTON,r,this,IDB_BUTTON);
}
编译后提示unexpected end of file found
- unexpected end of file found
- unexpected end of file found
- unexpected end of file found in comment
- unexpected end of file found in comment
- unexpected end of file
- fatal error RC1004: unexpected end of file found处理方法
- error RC1004: unexpected end of file found处理方法
- fatal error RC1004: unexpected end of file found处理方法
- fatal error RC1004: unexpected end of file found
- fatal error C1071: unexpected end of file found in comment
- VS: fatal error RC1004: unexpected end of file found
- fatal error C1004: unexpected end of file found
- VC++ fatal error RC1004: unexpected end of file found
- VS2012 error C1071: unexpected end of file found in comment
- bash: unexpected end of file
- Linux unexpected end of file ,`xxxx' unexpected
- vc++ resource.h文件出现“fatal error RC1004: unexpected end of file found”问题
- vc++ resource.h文件出现“fatal error RC1004: unexpected end of file found”问题
- posiX命名信号量和互斥体的性能测试
- 手机激活windows xp!!
- WIFI和ZIGBee的区别
- EVC编写WINCE下的HelloWorld
- 小议不引入第三变量的变量交换
- unexpected end of file found
- 假如明年加息,请买进招商
- JavaScript时钟间隔的问题~
- falsh
- java.io包详细解说
- TigerData2008(四): Nation-based shape file.
- PV还能支撑多久
- 微观世界和宏观世界是如此的相似
- 如何把工作任务分配给手下的员工