Thread: Unable to lock\unlock surface

  1. #16
    Registered User
    Join Date
    Sep 2001
    I bet you're right, you do declare variables twice, which is probably your entire problem.

    Remove these lines:

    //Pointer 2 ddraw obj

    //used to hold the DirectDraw surface description

    //Where the interface pointer will be placed when the surface is created

    from your initialization -- these are already declared as globals.

  2. #17
    Okay that solved the problem man did i make a stupid mistake well atleast i learned some debuging skills. Thanks for all your help.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to do surface triangulation?
    By adameye in forum C Programming
    Replies: 2
    Last Post: 02-27-2009, 02:15 PM
  2. When I ask SDL for a hardware surface I don't get one
    By scwizard in forum Game Programming
    Replies: 4
    Last Post: 07-24-2008, 03:56 PM
  3. OpenGL: How to make surface shiny
    By ting in forum Game Programming
    Replies: 6
    Last Post: 06-18-2008, 05:09 PM
  4. Another weird error
    By rwmarsh in forum Game Programming
    Replies: 4
    Last Post: 09-24-2006, 10:00 PM
  5. Please help with my game
    By jjj93421 in forum Game Programming
    Replies: 10
    Last Post: 04-12-2004, 11:38 PM