Original Post
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