@Anastasia - DarkGDK, unfortunately is not compiled and linked with a debug library(although v7.4 comes with a debug folder, i havent tried linking the libs in there so cant say if they work or not) if compiled and linked in release mode, so anytime you link to DarkGDK you need to tell it to use non-debug libs(which does kind of defeat the purpose of debugging in the first place, though you can still use the basics, alot of debug functions wont work, and you cannot have _DEBUG or DEBUG defined as a preprocessor it will generate link errors)
Also, on another note, im not sure of the code you posted above is complete or not(im assuming not) as it will not run in the state it is in... DarkGDK creates it's own window and registers it's own window class and manages its own message pump(can only get at it with CallWindowProc) and creates the directX device for you.
At the very least you main "void DarkGDK()" block should have a skeleton like this :
void DarkGDK()
{
while(LoopGDK())
{
dbSync();
}
}
Have a look through the examples if you arent sure of how its all working, being a teacher of C++ you should be able to follow it all quite easily
If it ain't broke.... DONT FIX IT !!!