Advertisement

DDERR_INVALIDCAPS

Started by June 15, 2001 01:19 PM
0 comments, last by vbisme 23 years, 7 months ago
the following codes:
  
DDSURFACEDESC2 ddsd
ddsd.dwSize = sizeof(ddsd);
ddsd.dwFlags = DDSD_CAPS;
ddsd.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE;
HRESULT	ddrval;
	
ddrval = lpDD->CreateSurface(&ddsd, &lpDDSurfPrimary, NULL);
  
ddrval returns DDERR_INVALIDCAPS. What could be wrong?
Try doing a memset() before using the struct: memset(&ddsd,0,sizeof(ddsd));



- Goblineye Entertainment
The road to success is always under construction
Goblineye EntertainmentThe road to success is always under construction

This topic is closed to new replies.

Advertisement