So i am trying to learnto make games using Visual C++ 2008 express with DarkGDK and i have this code:

#include "DarkGDK.h"

void DarkGDK( void )
{
dbSyncOn();

dbSyncRate(60);

dbDisableEscapeKey();

dbSetImageColorKey(225,0,225);

dbLoadImage( "player.bmp" ,1);

dbSprite(1,100,50,1);

while(LoopGDK())
{
if(dbEscapeKey() == 1)
{
break;
}
dbSync;

}

dbDeleteImage(1);
dbDeleteSprite(1);

return;
}

it is from a tutorial and it is exactly like that one but when i run it , it only shows a black window.. Help please