補充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函數。看指南部分種基本的例子程序。
 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章