WINDOW_HEIGHT,16);if(DDFailedCheck(hr,"SetDisplayMode", cpErrorBuf ))return0;// Create the primary surfacememset(&ddsd,0,sizeof(ddsd));//clear ddsd structureddsd.dwSize
LPDIRECTDRAWCLIPPER lpddClipper;//pointer to the newly created dd clipper//first create the DD clipperddReturnVal = lpddObj->CreateClipper(0,&lpddClipper,NULL);if(DDFailedCheck(ddReturnVal,"CreateClipper() failed", cpErrorBuf )) { MessageBox(main_window_handle, cpErrorBuf,"AttachClipper()...
intGame_Init(void*parms =NULL,intnum_parms =0){// this is called once after the initial window is created and// before the main event loop is entered, do all your initialization// here// create IDirectDraw interface 7.0 object and test for errorif(FAILED(DirectDrawCreateEx(NULL, (void...