如题,例子是第三章的第一个例子,我是直接复制下来的,所以应该不是代码错误吧,是不是我的VC安装的不全?求教;
错误代码如下:
HELLOWIN.CPP
C:\Documents and Settings\Administrator\桌面\winproject\HELLOWIN.CPP(11) : error C2065: 'WNDCLAS' : undeclared identifier
C:\Documents and Settings\Administrator\桌面\winproject\HELLOWIN.CPP(11) : error C2146: syntax error : missing ';' before identifier 'wndclass'
C:\Documents and Settings\Administrator\桌面\winproject\HELLOWIN.CPP(11) : error C2065: 'wndclass' : undeclared identifier
C:\Documents and Settings\Administrator\桌面\winproject\HELLOWIN.CPP(13) : error C2228: left of '.style' must have class/struct/union type
C:\Documents and Settings\Administrator\桌面\winproject\HELLOWIN.CPP(14) : error C2228: left of '.lpfnWndProc' must have class/struct/union type
C:\Documents and Settings\Administrator\桌面\winproject\HELLOWIN.CPP(15) : error C2228: left of '.cbClsExtra' must have class/struct/union type
C:\Documents and Settings\Administrator\桌面\winproject\HELLOWIN.CPP(16) : error C2228: left of '.cbWndExtra' must have class/struct/union type
C:\Documents and Settings\Administrator\桌面\winproject\HELLOWIN.CPP(17) : error C2228: left of '.hInstance' must have class/struct/union type
C:\Documents and Settings\Administrator\桌面\winproject\HELLOWIN.CPP(20) : error C2228: left of '.hIcon' must have class/struct/union type
C:\Documents and Settings\Administrator\桌面\winproject\HELLOWIN.CPP(21) : error C2228: left of '.hCursor' must have class/struct/union type
C:\Documents and Settings\Administrator\桌面\winproject\HELLOWIN.CPP(22) : error C2228: left of '.hbrBackground' must have class/struct/union type
C:\Documents and Settings\Administrator\桌面\winproject\HELLOWIN.CPP(23) : error C2228: left of '.lpszMenuNam' must have class/struct/union type
C:\Documents and Settings\Administrator\桌面\winproject\HELLOWIN.CPP(24) : error C2228: left of '.lpszClassName' must have class/struct/union type
执行 cl.exe 时出错.
winproject.exe - 1 error(s), 0 warning(s)
windows程序设计 第五版 的一个例子运行不了,怎么回事?
答案:2 悬赏:70
解决时间 2021-02-21 17:16
- 提问者网友:若相守£卟离
- 2021-02-21 03:14
最佳答案
- 二级知识专家网友:邪性洒脱
- 2021-02-21 03:21
标点符号问题,你可以传一份源码给我,我帮你调试
全部回答
- 1楼网友:不傲怎称霸
- 2021-02-21 03:43
你好!
应该是WNDCLASS wndclass;
我的回答你还满意吗~~
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯
• 手机登qq时,显示手机磁盘不足,清理后重新登 |
• 刺客的套装怎么选啊? |