Visual Studio .NET

1. Set headers and libraries path

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

Adding include path

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:

Adding libraries path

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:

Creating blank project, 1 of 2

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:

Creating blank project, 2 of 2

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.

Adding import libraries to a project

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.