补充Haaf's Game Engine 中关于vc6中的设置

Visual C++ 6.0
1.    Set headers and libraries path 设置头文件和库文件路径
Open Tools->Options->Directories dialog tab, add path to HGE "include" directory and move it to the top:
打开 “工具-〉选项-〉目录”对话框,添加HE“include”目录到目录项,并且将它移动到最上面。
 


On the same tab select Library files from the Show directories for dropdown list,  add path to HGE "lib/vc" directory and move it to the top:在相同的页面里从显示目录的 侠辣列表框中选择Library files,添加HGE中的"lib/vc"路径到目录中,并将它移动到最上面。
 


Press OK. 按下确定按钮

Now you can use HGE in your projects without specifying it's exact location. This step is needed only once for all your projects.  这样你就可以不用指定HGE精确的路径就可以在你的工程中使用它了。这一步对你所有的工程来说只需要一次设置。

2. Create blank Win32 Application project创建空白的Win32应用程序
Open File ->New...->Projects dialog tab, select Win32 Application, type in your Project name and Location: 打开“文件-〉新的-〉工程”对话框,选择“Win32应用程序”,输入你的工程名和路径。
 


Press OK. 按确定按钮

On the next screen select An empty project or A simple Win32 application if you want a simple file structure to be created for you: 在下一个显示页中选择“一个空工程”或者“一个简单的win32应用程序”, 如果你想要一个简单的文件结构来创建的话。
 


Press Finish. Voila! You have the project created now. 按完成按钮。瞧,你现在已经创建了一个工程。

3. Add libraries to the project为工程增加库
Open Project ->Settings...->Link dialog tab and add to Object/library modules the following libraries:  打开“工程-〉设置-〉连接”对话框,并且在“工程/连接模块”中添加下面的库
•    hge.lib - HGE system layer DLL import library ,HGE系统层DLL导入库。
•    hgehelp.lib - HGE helper classes library ,HGE辅助类库
If you don't call any Windows functions, these two are the only libraries required. 如果你不调用任何WINDOWS函数,那么这两个文件就是唯一必需的
 
Then select Win32 Release from the Settings For dropdown list and repeat the operation. 然后选择“Win32 Release”从设置下拉列表中重复上面的动作

Press OK. 按确定按钮

4. Start coding!开始编码
Include hge.h to access HGE functions. See Tutorials section for basic code examples.包含hge.h去访问HGE函数。看指南部分种基本的例子程序。
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值