HGE 在 VS2005中的配置

1. Set headers and libraries path

Open Tools->Options->Projects->VC++ Directories, add path to HGE "include" directory and move it to the top:


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:


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.

2. Create blank Win32 Application project

Open File->New...->Projects dialog tab, select Win32 Project, type in your Project name and Location:


Press OK.

On the next screen select Application Settings. Make sure that Windows Application is set under Application Type. Then check Empty project under Additional Options or leave it unchecked if you want a simple file structure to be created for you:


Press Finish. Voila! You have the project created now.

3. Add libraries to the project

Open Project->Properties...->Linker->Input and add to Additional Dependencies the following libraries:

  • hge.lib - HGE system layer DLL import library
  • hgehelp.lib - HGE helper classes library

If you don't call any Windows functions, these two are the only libraries required.


Then select Release from the Configuration dropdown list and repeat the operation.

Press OK.

4. Start coding!

Include hge.h to access HGE functions. See Tutorials section for basic code examples.

 

 

Code

5、尽管如此,可是运行时还会报错。

原因是找不到hge.dll。好办。直接复制该文件到debug目录下。

再次运行,OK。


posted on 2009-05-31 12:19  chzhcpu  阅读(1123)  评论(0编辑  收藏  举报

导航