谁能帮小弟调试这个RPG游戏代码,谢谢
谁能帮小弟调试这个RPG游戏代码,谢谢
www.hz-dns.com/RPG1.rar
问题点数:0、回复次数:11Top
1 楼honghaier(红孩儿)回复于 2003-12-04 09:32:51 得分 0
哦。原来是在setting里忘了加dxguid.lib
你用的是VS.NET吗?
输入链接库里加dxguid.lib
Top
2 楼rong007(7856381)回复于 2003-12-04 10:02:29 得分 0
怎么搞呀,我第一次玩RPG,谢谢
我的是directX9.0的,装了不知道目录在那,Top
3 楼rong007(7856381)回复于 2003-12-04 10:10:54 得分 0
VC++
Vs.net也用
Top
4 楼honghaier(红孩儿)回复于 2003-12-04 10:11:20 得分 0
我也是用dx9。
我看你的程序了(呵呵,盗版)
…
你打开vs6
然后在project项目里有个setting
然后点link
下面有下框,里面有好多 lib:ddraw.lib winmm.lib …
就在这里面加上dxguid.lib
如果是vs.net
打开解决方案管理器…
右键点解决方案的属性。然后找链接器-》输入 第一个框里加上dxguid.libTop
5 楼rong007(7856381)回复于 2003-12-04 10:14:23 得分 0
我用VC++来调试
出现
e:\我的文档\游戏开发资料\第五章例程\ddutil.h(14) : error C2061: syntax error : identifier 'IDirectDraw7'
e:\我的文档\游戏开发资料\第五章例程\ddutil.h(15) : error C2143: syntax error : missing ';' before '*'
e:\我的文档\游戏开发资料\第五章例程\ddutil.h(15) : error C2061: syntax error : identifier 'IDirectDraw7'
e:\我的文档\游戏开发资料\第五章例程\ddutil.h(15) : error C2501: 'DDLoadBitmap' : missing storage-class or type specifiers
e:\我的文档\游戏开发资料\第五章例程\ddutil.h(16) : error C2065: 'pdds' : undeclared identifier
e:\我的文档\游戏开发资料\第五章例程\ddutil.h(16) : error C2275: 'LPCSTR' : illegal use of this type as an expression
c:\program files\microsoft visual studio\vc98\include\winnt.h(167) : see declaration of 'LPCSTR'
e:\我的文档\游戏开发资料\第五章例程\ddutil.h(16) : error C2146: syntax error : missing ')' before identifier 'szBitmap'
e:\我的文档\游戏开发资料\第五章例程\ddutil.h(16) : error C2078: too many initializers
e:\我的文档\游戏开发资料\第五章例程\ddutil.h(16) : error C2275: 'LPCSTR' : illegal use of this type as an expression
c:\program files\microsoft visual studio\vc98\include\winnt.h(167) : see declaration of 'LPCSTR'
e:\我的文档\游戏开发资料\第五章例程\ddutil.h(16) : error C2059: syntax error : ')'
e:\我的文档\游戏开发资料\第五章例程\ddutil.h(17) : error C2275: 'HBITMAP' : illegal use of this type as an expression
c:\program files\microsoft visual studio\vc98\include\windef.h(232) : see declaration of 'HBITMAP'
e:\我的文档\游戏开发资料\第五章例程\ddutil.h(17) : error C2146: syntax error : missing ')' before identifier 'hbm'
e:\我的文档\游戏开发资料\第五章例程\ddutil.h(17) : error C2078: too many initializers
e:\我的文档\游戏开发资料\第五章例程\ddutil.h(17) : error C2275: 'HBITMAP' : illegal use of this type as an expression
c:\program files\microsoft visual studio\vc98\include\windef.h(232) : see declaration of 'HBITMAP'
e:\我的文档\游戏开发资料\第五章例程\ddutil.h(17) : error C2059: syntax error : ')'
e:\我的文档\游戏开发资料\第五章例程\ddutil.h(18) : error C2275: 'COLORREF' : illegal use of this type as an expression
c:\program files\microsoft visual studio\vc98\include\windef.h(281) : see declaration of 'COLORREF'
e:\我的文档\游戏开发资料\第五章例程\ddutil.h(18) : error C2146: syntax error : missing ')' before identifier 'rgb'
e:\我的文档\游戏开发资料\第五章例程\ddutil.h(18) : error C2078: too many initializers
e:\我的文档\游戏开发资料\第五章例程\ddutil.h(18) : error C2275: 'COLORREF' : illegal use of this type as an expression
c:\program files\microsoft visual studio\vc98\include\windef.h(281) : see declaration of 'COLORREF'
e:\我的文档\游戏开发资料\第五章例程\ddutil.h(18) : error C2059: syntax error : ')'
e:\我的文档\游戏开发资料\第五章例程\ddutil.h(19) : error C2275: 'COLORREF' : illegal use of this type as an expression
c:\program files\microsoft visual studio\vc98\include\windef.h(281) : see declaration of 'COLORREF'
e:\我的文档\游戏开发资料\第五章例程\ddutil.h(19) : error C2146: syntax error : missing ')' before identifier 'rgb'
e:\我的文档\游戏开发资料\第五章例程\ddutil.h(19) : error C2078: too many initializers
e:\我的文档\游戏开发资料\第五章例程\ddutil.h(19) : error C2275: 'COLORREF' : illegal use of this type as an expression
c:\program files\microsoft visual studio\vc98\include\windef.h(281) : see declaration of 'COLORREF'
e:\我的文档\游戏开发资料\第五章例程\ddutil.h(19) : error C2059: syntax error : ')'
e:\我的文档\游戏开发资料\第五章例程\main.h(36) : error C2146: syntax error : missing ';' before identifier 'lpDD'
e:\我的文档\游戏开发资料\第五章例程\main.h(36) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
我已加了那个目录,可是还是会出这样的错,你那里能调试吗?Top
6 楼rong007(7856381)回复于 2003-12-04 10:22:08 得分 0
在那管理员属性页里找不到链接器呀Top
7 楼honghaier(红孩儿)回复于 2003-12-04 10:23:43 得分 0
我用VS.NET,现在可以了呀!
从你的出错信息上看,十有八九是库的原因…
ddraw.lib dxguid.lib winmm.libTop
8 楼honghaier(红孩儿)回复于 2003-12-04 10:26:18 得分 0
你打开解方案管理器,然后右键点解决方案"RPG1"(1项目)下的RPG1,在弹出菜单里点属性…Top
9 楼rong007(7856381)回复于 2003-12-04 10:30:05 得分 0
你有QQ吗?我的QQ是13360647 我们可以用QQ聊吗??
我打开RPG1.sln这个文件,然后打开解决方案管理器,,属性,
这里只有显示:
名称
活动配置
路径
启动项目
说明
项目依赖项
就这么多Top
10 楼rong007(7856381)回复于 2003-12-04 10:32:17 得分 0
找到了,谢谢Top
11 楼rong007(7856381)回复于 2003-12-04 10:34:26 得分 0
不过在那里增加那个路径呀Top




