Skip to main content
GameDev.net gamedev.net
🔒 Locked

Surface locking problem

Started by An Irritable Gent Apr 27, 2000 at 6:33 PM 1 replies 1.1k views
Original Post
An Irritable Gent
An Irritable Gent
Hi, I have an older video card (which I know is half the problem), but I''m sometimes having problems with *some* of the DirectDraw samples in "Tricks of the Windows Game Programming Gurus" book: on some samples, when an attempt to lock the primary surface, I get a "DDERR_CANTLOCKSURFACE" error (I had to dig through the return codes to find this). According to the DirectX docs, this means "Access to this surface is refused because an attempt was made to lock the primary surface without DCI (Display Control Interface) support." My questions: 1. Why do *some* sample programs work that use locking on the primary surface? (ie. what could cause this to succeed sometimes and not others?) 2. What is DCI? 3. Is there an easier way (ie. a function) of determining the name of an error code rather than digging through the #include files? Thanks, aig
aig
An Irritable Gent
An Irritable Gent
I found the answer to #1 - my video driver didn''t have full DirectDraw support, and updating the driver fixed this. However, I''d still like the answer to #3

aig
aig
Yoshi
Yoshi
There are two ways to answer question 3.
#1 Use the D3DX function GetErrorString (works for DD also)
#2 there is an dderr.h somewhere around the net which sums up all the errors.


The last truth is that there is no magic(Feist)

Edited by - Yoshi on 4/30/00 5:35:59 AM
The last truth is that there is no magic(Feist)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.