CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  专题开发/技术/项目 >  游戏开发

谁能帮小弟调试这个RPG游戏代码,谢谢

楼主rong007(7856381)2003-12-04 01:02:31 在 专题开发/技术/项目 / 游戏开发 提问

谁能帮小弟调试这个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

相关问题

  • 代码调试!关于FOR。。LISTVIEW。。??
  • 有没有人有j2me手机RPG游戏的源代码啊?
  • 谁能给我一个微型的RPG游戏源代码?(C++的)
  • 本机如何调试jsp代码?
  • 这种代码如何调试呀?
  • 如何调试VCL源代码?
  • 客户端代码能调试吗?
  • .Net如何调试客户端代码?
  • 请帮忙调试这段代码
  • 调试pl/sql代码问题

关键词

  • vs.net
  • rpg
  • 游戏开发
  • 文档
  • 资料
  • 属性
  • 项目
  • vs
  • 例程
  • ddutil

得分解答快速导航

  • 帖主:rong007

相关链接

  • CSDN Blog
  • 技术文档
  • 代码下载
  • 第二书店
  • 读书频道

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo