Original Post
🔒 Locked
Unhandled exeception with DirectDraw initialization code
Advertisement
CreateSurface() is failing then, giving you a null or invalid pointer. Check your error codes and use the debugger.
ddrval should be something other than DD_OK
ddrval should be something other than DD_OK
From the Want to post? Read this first. sticky thread:
Help us to help you. You've dumped a block of code and a really quite undescriptive error, with no indication that you've investigated the problem (e.g. checked for NULL pointers, return code values etc..). I updated your subject line so that it might give other members of the community a better idea of what you're trying to ask.
Cheers,
Jack
Quote:
Use a subject line that accurately describes your problem.
Avoid subject lines like:
- "Problem! I need help!"
- "DirectX is broken"
- "Help PLZ PLZ PLZ PLZ"
Use something like:
- "Extremely low frame rates with shadow volumes"
- "Determining Z Buffer depths supported"
- "Flickering when use D3DPRESENT_INTERVAL_IMMEDIATE"
- "[MDX] Rotating the texture on a pointsprite"
Choosing an accurate subject line helps people identify your thread quickly, and potentially replying.
Help us to help you. You've dumped a block of code and a really quite undescriptive error, with no indication that you've investigated the problem (e.g. checked for NULL pointers, return code values etc..). I updated your subject line so that it might give other members of the community a better idea of what you're trying to ask.
Cheers,
Jack
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement