我来我网
https://5come5.cn
您尚未
登录
注册
|
菠菜
|
软件站
|
音乐站
|
邮箱1
|
邮箱2
|
风格选择
|
更多 »
vista
鍙よ壊涔﹂
card
wind
绮夌孩濂抽儙
帮助
统计与排行
无图版
我来我网·5come5 Forum
»
电脑技术
»
程序员之家
»
[求助]求高人找出下面程序中的问题。
交 易
投 票
本页主题:
[求助]求高人找出下面程序中的问题。
显示签名
|
打印
|
加为IE收藏
|
收藏主题
|
上一主题
|
下一主题
wildwind
∷
性别:
保密
∷
状态:
∷
等级:
栋梁之材
∷
发贴:
785
∷
威望:
1
∷
浮云:
1134
∷
在线等级:
∷
注册时间: 2004-04-08
∷
最后登陆: 2007-06-27
【
复制此帖地址
只看此人回复
】
5come5帮你背单词 [
indeed
/in'di:d/
ad. 实际上,确实
]
[求助]求高人找出下面程序中的问题。
在WinApp.h的HINSTANCE GetAppHandle();前的分号去掉就会出错,
哪个达人来解释一下。
Posted: 2006-11-06 09:09 |
[楼 主]
wildwind
∷
性别:
保密
∷
状态:
∷
等级:
栋梁之材
∷
发贴:
785
∷
威望:
1
∷
浮云:
1134
∷
在线等级:
∷
注册时间: 2004-04-08
∷
最后登陆: 2007-06-27
【
复制此帖地址
只看此人回复
】
5come5帮你背单词 [
handbag
/'h
æ
ndb
æ
g/
n. 女用手提包,旅行用手提包
]
如下:
#ifndef __WinApp_H__
#define __WinAPP_H__
#include "AppEntry.h"
//获得主程序句柄
;HINSTANCE GetAppHandle();//就是这里了。
//获得主窗口句柄
HWND GetMainWnd();
#endif //__WinAPP_H__
Posted: 2006-11-06 10:10 |
[1 楼]
wildwind
∷
性别:
保密
∷
状态:
∷
等级:
栋梁之材
∷
发贴:
785
∷
威望:
1
∷
浮云:
1134
∷
在线等级:
∷
注册时间: 2004-04-08
∷
最后登陆: 2007-06-27
【
复制此帖地址
只看此人回复
】
5come5帮你背单词 [
collaborate
/k
ə
'l
æ
b
ə
reit/
vi. 合作,协作
]
--------------------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 |
[2 楼]
wildwind
∷
性别:
保密
∷
状态:
∷
等级:
栋梁之材
∷
发贴:
785
∷
威望:
1
∷
浮云:
1134
∷
在线等级:
∷
注册时间: 2004-04-08
∷
最后登陆: 2007-06-27
【
复制此帖地址
只看此人回复
】
5come5帮你背单词 [
rhyme
/raim/
n. 押韵,韵脚;v. 押韵
]
找到问题的关键了,KAO,原来在定义类时}号后要加;
Posted: 2006-11-06 19:21 |
[3 楼]
快速跳至
|- 站务管理
|- 惩罚,奖励公布区
|- 会员咨询意见区
|- 申请区
|- 已批准申请区
|- 威望和荣誉会员推荐区
|- 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.009458(s) query 6, Time now is:11-24 02:36, Gzip enabled
Powered by PHPWind v5.3, Localized by
5come5 Tech Team
,
黔ICP备16009856号