标题:[求助]编译出了四个问题,怎么也搞不好,我快疯了
取消只看楼主
huangchangle
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2006-6-17
 问题点数:0 回复次数:0 
[求助]编译出了四个问题,怎么也搞不好,我快疯了

//应用程序类
#include<afxwin.h>
class cmycpp:public CWinApp
{
public:
virtual bool InitInstance();
};
//框架窗口类
class cmyframe:public CFrameWnd
{
public:
cmyframe();
protected:
//"afx_msg"indicates that the next two functions are part of the mfc library message dispatch system
afx_msg void OnLButtonDown(UINT nFlags,CPoint point);
afx_msg void OnPaint();
DECLARE_MESSAGE_MAP();
};
#include <afxwin.h>
#include"myapp.h"
cmyapp theapp;//唯一的一个cmyapp 对象
bool cmyapp::InitInstance()
{
m_pMainwnd=new cmyframe();
m_pMainWnd->showwindow(m_nCmdShow);
m_pMainWnd->updatewindow();
return true;
}
BIGIN_MESSAGE_MAP(Cmyframe,CFrameWnd)
ON_WN_LBUTTONDOWN()
oN_WN_PAINT()
END_MESSAGE_MAP()
cmyframe::cmyframe()
{
create(NULL,"MYAPP APPLICATION");
}
void cmyframe::onlbuttondown(uint nflags,cpoint point)
{
trace("entering cmyframe::onlbuttondown-%lx,%d, %d\n",(long)nflags,point.x,point.y);
}
void cmyframe::onpaint()
{
cpaintdc dc(this);
dc.textout(0,0,"hello,world!")
}

搜索更多相关主题的帖子: 编译 
2006-06-26 21:31



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-75003-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.117310 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved