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

来源:互联网 发布:linux所有版本网站 编辑:程序博客网 时间:2024/05/01 23:46
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函数。看指南部分种基本的例子程序。
 

原创粉丝点击