Device Creation
If your application fails during device creation, check for the following common errors:
- You must specify DDSCAPS_3DDEVICE when you create the DirectDraw surface.
- If you're using a palettized device, you must attach the palette.
- If you're using a z-buffer, you must attach it to the rendering target.
- Make sure you check the device capabilities, particularly the render depths.
- Check whether you are using system or video memory.
- Ensure that the registry has not been corrupted.