我来我网
https://5come5.cn
您尚未
登录
注册
|
菠菜
|
软件站
|
音乐站
|
邮箱1
|
邮箱2
|
风格选择
|
更多 »
vista
鍙よ壊涔﹂
card
wind
绮夌孩濂抽儙
帮助
统计与排行
无图版
我来我网·5come5 Forum
»
电脑技术
»
程序员之家
»
[求助]求高人找出下面程序中的问题。
交 易
投 票
本页主题:
[求助]求高人找出下面程序中的问题。
显示签名
|
打印
|
加为IE收藏
|
收藏主题
|
上一主题
|
下一主题
wildwind
∷
性别:
保密
∷
状态:
∷
等级:
栋梁之材
∷
发贴:
785
∷
威望:
1
∷
浮云:
1134
∷
在线等级:
∷
注册时间: 2004-04-08
∷
最后登陆: 2007-06-27
【
复制此帖地址
只看此人回复
】
5come5帮你背单词 [
limb
/lim/
n. 肢,臂,翼
]
[求助]求高人找出下面程序中的问题。
在WinApp.h的HINSTANCE GetAppHandle();前的分号去掉就会出错,
哪个达人来解释一下。
Posted: 2006-11-06 09:09 |
[楼 主]
chsml
∷
性别:
∷
状态:
∷
头衔:
知识真是重要呀, 可以用来 B4 人
∷
等级:
人见人爱
∷
发贴:
3028
∷
威望:
1
∷
浮云:
1200
∷
在线等级:
∷
注册时间: 2004-12-07
∷
最后登陆: 2007-09-12
【
复制此帖地址
只看此人回复
】
5come5帮你背单词 [
move
/mu:v/
vt. 移动,搬动,感动,提议;vi.前进,运行,进展,搬家,迁居;n. (下棋)一着,步骤
]
电脑在外头 同学的机器没编译环境 不能帮到了
Posted: 2006-11-06 09:19 |
[1 楼]
chsml
∷
性别:
∷
状态:
∷
头衔:
知识真是重要呀, 可以用来 B4 人
∷
等级:
人见人爱
∷
发贴:
3028
∷
威望:
1
∷
浮云:
1200
∷
在线等级:
∷
注册时间: 2004-12-07
∷
最后登陆: 2007-09-12
【
复制此帖地址
只看此人回复
】
5come5帮你背单词 [
suppress
/s
ə
'pres/
vt. 镇压,抑制,忍住,隐瞒
]
没有包含windows.h
你把编译错误给我看, 是不是类型未定义和语句未结束,需要";"那些
Posted: 2006-11-06 09:25 |
[2 楼]
wildwind
∷
性别:
保密
∷
状态:
∷
等级:
栋梁之材
∷
发贴:
785
∷
威望:
1
∷
浮云:
1134
∷
在线等级:
∷
注册时间: 2004-04-08
∷
最后登陆: 2007-06-27
【
复制此帖地址
只看此人回复
】
5come5帮你背单词 [
field
/fi:ld/
n. 田野,运动场,领域
]
如下:
#ifndef __WinApp_H__
#define __WinAPP_H__
#include "AppEntry.h"
//获得主程序句柄
;HINSTANCE GetAppHandle();//就是这里了。
//获得主窗口句柄
HWND GetMainWnd();
#endif //__WinAPP_H__
Posted: 2006-11-06 10:10 |
[3 楼]
不该去整容
∷
性别:
保密
∷
状态:
∷
等级:
初出茅庐
∷
家族:
水族馆
∷
发贴:
64
∷
威望:
0
∷
浮云:
1166
∷
在线等级:
∷
注册时间: 2006-11-06
∷
最后登陆: 2006-11-13
【
复制此帖地址
只看此人回复
】
5come5帮你背单词 [
originate
/
ə
'rid
3
ə
ineit/
v. 发源,发生
]
貌似看不懂,期待高手。。
Posted: 2006-11-06 13:31 |
[4 楼]
chsml
∷
性别:
∷
状态:
∷
头衔:
知识真是重要呀, 可以用来 B4 人
∷
等级:
人见人爱
∷
发贴:
3028
∷
威望:
1
∷
浮云:
1200
∷
在线等级:
∷
注册时间: 2004-12-07
∷
最后登陆: 2007-09-12
【
复制此帖地址
只看此人回复
】
5come5帮你背单词 [
reproduce
/ri:pr
ə
'dju:s/
v. 使再生,复制,生殖
]
jiao ni fa bian yi qi de cuo wu ti shi...
Posted: 2006-11-06 13:33 |
[5 楼]
wildwind
∷
性别:
保密
∷
状态:
∷
等级:
栋梁之材
∷
发贴:
785
∷
威望:
1
∷
浮云:
1134
∷
在线等级:
∷
注册时间: 2004-04-08
∷
最后登陆: 2007-06-27
【
复制此帖地址
只看此人回复
】
5come5帮你背单词 [
soluble
/'soljubl/
a. 可溶的,可以解决的
]
--------------------Configuration: tank - Win32 Debug--------------------
Compiling...
WinApp.cpp
d:\bc++\study\tank\winapp.h(10) : error C2146: syntax error : missing ';' before identifier 'GetAppHandle'
d:\bc++\study\tank\winapp.h(10) : error C2259: 'IAppEntry' : cannot instantiate abstract class due to following members:
d:\bc++\study\tank\appentry.h(12) : see declaration of 'IAppEntry'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'bool __thiscall IAppEntry::Initialize(struct HINSTANCE__ *,struct HWND__ *)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(14) : see declaration of 'Initialize'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'void __thiscall IAppEntry::Terminal(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(16) : see declaration of 'Terminal'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'void __thiscall IAppEntry::Process(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(18) : see declaration of 'Process'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'void __thiscall IAppEntry::Render(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(20) : see declaration of 'Render'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'long __thiscall IAppEntry::WndProc(unsigned int,unsigned int,long)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(22) : see declaration of 'WndProc'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'const char *__thiscall IAppEntry::WindowClassName(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(24) : see declaration of 'WindowClassName'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'const int __thiscall IAppEntry::WindowWidth(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(26) : see declaration of 'WindowWidth'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'const int __thiscall IAppEntry::WindowHeight(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(28) : see declaration of 'WindowHeight'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'struct HINSTANCE__ *__thiscall IAppEntry::GetInstance(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(30) : see declaration of 'GetInstance'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'struct HWND__ *__thiscall IAppEntry::GetWnd(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(32) : see declaration of 'GetWnd'
d:\bc++\study\tank\winapp.h(10) : error C2377: 'HINSTANCE' : redefinition; typedef cannot be overloaded with any other symbol
c:\program files\microsoft visual studio\vc98\include\windef.h(252) : see declaration of 'HINSTANCE'
d:\bc++\study\tank\winapp.h(10) : error C2259: 'IAppEntry' : cannot instantiate abstract class due to following members:
d:\bc++\study\tank\appentry.h(12) : see declaration of 'IAppEntry'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'bool __thiscall IAppEntry::Initialize(struct HINSTANCE__ *,struct HWND__ *)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(14) : see declaration of 'Initialize'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'void __thiscall IAppEntry::Terminal(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(16) : see declaration of 'Terminal'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'void __thiscall IAppEntry::Process(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(18) : see declaration of 'Process'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'void __thiscall IAppEntry::Render(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(20) : see declaration of 'Render'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'long __thiscall IAppEntry::WndProc(unsigned int,unsigned int,long)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(22) : see declaration of 'WndProc'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'const char *__thiscall IAppEntry::WindowClassName(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(24) : see declaration of 'WindowClassName'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'const int __thiscall IAppEntry::WindowWidth(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(26) : see declaration of 'WindowWidth'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'const int __thiscall IAppEntry::WindowHeight(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(28) : see declaration of 'WindowHeight'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'struct HINSTANCE__ *__thiscall IAppEntry::GetInstance(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(30) : see declaration of 'GetInstance'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'struct HWND__ *__thiscall IAppEntry::GetWnd(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(32) : see declaration of 'GetWnd'
d:\bc++\study\tank\winapp.h(10) : fatal error C1004: unexpected end of file found
AppGame.cpp
d:\bc++\study\tank\winapp.h(10) : error C2146: syntax error : missing ';' before identifier 'GetAppHandle'
d:\bc++\study\tank\winapp.h(10) : error C2259: 'IAppEntry' : cannot instantiate abstract class due to following members:
d:\bc++\study\tank\appentry.h(12) : see declaration of 'IAppEntry'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'bool __thiscall IAppEntry::Initialize(struct HINSTANCE__ *,struct HWND__ *)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(14) : see declaration of 'Initialize'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'void __thiscall IAppEntry::Terminal(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(16) : see declaration of 'Terminal'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'void __thiscall IAppEntry::Process(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(18) : see declaration of 'Process'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'void __thiscall IAppEntry::Render(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(20) : see declaration of 'Render'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'long __thiscall IAppEntry::WndProc(unsigned int,unsigned int,long)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(22) : see declaration of 'WndProc'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'const char *__thiscall IAppEntry::WindowClassName(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(24) : see declaration of 'WindowClassName'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'const int __thiscall IAppEntry::WindowWidth(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(26) : see declaration of 'WindowWidth'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'const int __thiscall IAppEntry::WindowHeight(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(28) : see declaration of 'WindowHeight'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'struct HINSTANCE__ *__thiscall IAppEntry::GetInstance(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(30) : see declaration of 'GetInstance'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'struct HWND__ *__thiscall IAppEntry::GetWnd(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(32) : see declaration of 'GetWnd'
d:\bc++\study\tank\winapp.h(10) : error C2377: 'HINSTANCE' : redefinition; typedef cannot be overloaded with any other symbol
c:\program files\microsoft visual studio\vc98\include\windef.h(252) : see declaration of 'HINSTANCE'
d:\bc++\study\tank\winapp.h(10) : error C2259: 'IAppEntry' : cannot instantiate abstract class due to following members:
d:\bc++\study\tank\appentry.h(12) : see declaration of 'IAppEntry'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'bool __thiscall IAppEntry::Initialize(struct HINSTANCE__ *,struct HWND__ *)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(14) : see declaration of 'Initialize'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'void __thiscall IAppEntry::Terminal(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(16) : see declaration of 'Terminal'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'void __thiscall IAppEntry::Process(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(18) : see declaration of 'Process'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'void __thiscall IAppEntry::Render(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(20) : see declaration of 'Render'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'long __thiscall IAppEntry::WndProc(unsigned int,unsigned int,long)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(22) : see declaration of 'WndProc'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'const char *__thiscall IAppEntry::WindowClassName(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(24) : see declaration of 'WindowClassName'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'const int __thiscall IAppEntry::WindowWidth(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(26) : see declaration of 'WindowWidth'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'const int __thiscall IAppEntry::WindowHeight(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(28) : see declaration of 'WindowHeight'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'struct HINSTANCE__ *__thiscall IAppEntry::GetInstance(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(30) : see declaration of 'GetInstance'
d:\bc++\study\tank\winapp.h(10) : warning C4259: 'struct HWND__ *__thiscall IAppEntry::GetWnd(void)' : pure virtual function was not defined
d:\bc++\study\tank\appentry.h(32) : see declaration of 'GetWnd'
d:\bc++\study\tank\winapp.h(10) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
tank.exe - 10 error(s), 40 warning(s)
发了。
Posted: 2006-11-06 18:55 |
[6 楼]
wildwind
∷
性别:
保密
∷
状态:
∷
等级:
栋梁之材
∷
发贴:
785
∷
威望:
1
∷
浮云:
1134
∷
在线等级:
∷
注册时间: 2004-04-08
∷
最后登陆: 2007-06-27
【
复制此帖地址
只看此人回复
】
5come5帮你背单词 [
arch
/a:t
∫
/
n. 拱门,弓形结构
]
找到问题的关键了,KAO,原来在定义类时}号后要加;
Posted: 2006-11-06 19:21 |
[7 楼]
chsml
∷
性别:
∷
状态:
∷
头衔:
知识真是重要呀, 可以用来 B4 人
∷
等级:
人见人爱
∷
发贴:
3028
∷
威望:
1
∷
浮云:
1200
∷
在线等级:
∷
注册时间: 2004-12-07
∷
最后登陆: 2007-09-12
【
复制此帖地址
只看此人回复
】
5come5帮你背单词 [
fussy
/'f
Λ
si/
a. 大惊小怪的,挑剔的,烦琐的
]
呵呵
Posted: 2006-11-07 01:42 |
[8 楼]
快速跳至
|- 站务管理
|- 惩罚,奖励公布区
|- 会员咨询意见区
|- 申请区
|- 已批准申请区
|- 威望和荣誉会员推荐区
|- 5come5名人堂·Hall of Fame
>> 休闲娱乐
|- 灌水乐园 大杂烩
|- 精水区
|- 幽默天地
|- 开怀大笑(精华区)
|- 灵异空间
|- 运动新时空·菠菜交流
|- 动之风.漫之舞
|- 新货上架
|- 古董挖挖
|- 唯美贴图
|- 创意&美化&设计
|- 5COME5头像及签名档图片引用专区
|- 艺术摄影
|- 音乐咖啡屋
|- 音道乐经
>> 热点讨论
|- 工作交流
|- 求职信息
|- 就业精华区
|- 同城联谊
|- 留学专版
|- 情感物语
|- 情感物语精华区
|- 带走一片银杏叶
|- 精华区
|- 新闻直通车
|- 众志成城,抗震救灾
|- 衣食住行
|- 跳蚤市场
|- 旅游出行
>> 学术交流
|- 学业有成
|- 智力考场
|- 考研专版
|- 外语乐园
|- 考试·毕业设计
|- 电子设计·数学建模
|- 学生工作·社团交流·RX
|- 电脑技术
|- 电脑F.A.Q.
|- 软件交流
|- 硬件·数码
|- 程序员之家
|- Linux专区
|- 舞文弄墨
|- 历史&文化
|- 军临天下
|- 军事精华区
|- 财经频道
>> 游戏新干线[电子竞技俱乐部]
|- Blizz@rd游戏特区
|- WarCraft III
|- 魔兽区档案库
|- 魔兽争霸3博彩专区
|- StarCraft(new)
|- 暗黑专区
|- 休闲游戏区
|- PC GAME综合讨论区
|- 实况足球专区
|- Counter-Strike专区
|- TV GAME& 模拟器
|- 网络游戏
>> 资源交流
|- 恋影部落
|- 连续剧天地
|- 综艺开心档
|- 书香小筑
|- 小说发布
|- 资源交流
|- 综艺、体育、游戏资源发布
|- 音乐资源发布区
|- 电影电视剧发布区
|- 字幕园地
我来我网·5come5 Forum
»
程序员之家
Total 0.008390(s) query 5, Time now is:11-24 00:19, Gzip enabled
Powered by PHPWind v5.3, Localized by
5come5 Tech Team
,
黔ICP备16009856号