well
this is my code
int __stdcall WinMain(HINSTANCE, HINSTANCE, LPSTR, int) {
HWND hWnd;
// Initialize DarkGDK by telling it where the engine dll is
if (!initDarkGDK("gdkengine.dll"))
return 1;
CheckResolution(screenW,screenH,depth);
// Create a window
hWnd = openWindow(0, 0, screenW, screenH, "TowerDefense by Nadav Rosenberg",
WS_OVERLAPPED | WS_CLIPSIBLINGS | WS_CAPTION | WS_SYSMENU |
WS_CLIPCHILDREN, true);
// Attach the DarkGDK screen to the window
dbOpenScreen(hWnd, 0, 0,screenW, screenH);
// Show the window
ShowWindow(hWnd, SW_SHOW);
srand ( time(NULL) );
dbSyncRate(60);
what am i doing wrong?