I am clearly having a problem with the dbLoadObject() function. Whenever I go to debug this short piece of code from tutorial #2, the output window loads up a black screen and then stops responding.
// Dark GDK - The Game Creators - www.thegamecreators.com
// whenever using Dark GDK you must ensure you include the header file
#include "DarkGDK.h"
// the main entry point for the application is this function
void DarkGDK ( void ) {
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn();
dbSyncRate(60);
dbLoadObject("Colonel-X.x", 1);
dbPositionCamera(0, 50, -80);
// our main loop
while (LoopGDK()) {
// update the screen
dbSync ( );
}
// return back to windows
return;
}
Whenever I comment out dbLoadObject, this script works fine. As in, it loads a blank screen, but that screen is still responsive to the escape key, whereas with this function compiled, it freezes the output window.
I have recently installed Visual C++ Express Edition and Dark GDK. I successfully installed Microsoft Windows SDK v6.1.
I am running Windows Vista 32 bit SP1, with AMD Athlon x63 Dual Core 4800+ 2.5 GHz, with 2 GB of RAM. Im currently using an Nforce mobo with onboard GeForce graphics card.
Any help would be greatly appreciated