Hallo,
ich habe folgendes Problem:
…
surface.open_window( hInstance, 1024, 768, 8 );
uchar *screen = (uchar *) surface.get_screen_pointer();
for( long x=0 ; xSetCooperativeLevel( main_window_handle, DDSCL_ALLOWREBOOT | DDSCL_EXCLUSIVE | DDSCL_FULLSCREEN | DDSCL_ALLOWMODEX ) != DD_OK ) exit( „Fehler während der Ausführung von SetCooperativeLevel().\n“ );
…
memset( &surface_description, 0, sizeof( surface_description ) );
surface_description.dwSize = sizeof( surface_description );
surface_description.dwFlags = DDSD_CAPS;
surface_description.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE;
if( main_dd_object->CreateSurface( &surface_description, &primary_surface, NULL ) != DD_OK ) exit( „Fehler während der Ausführung von CreateSurface().\n“ );
…