Unable to lock\unlock surface

This is a discussion on Unable to lock\unlock surface within the Game Programming forums, part of the General Programming Boards category; I bet you're right, you do declare variables twice, which is probably your entire problem. Remove these lines: //Pointer 2 ...

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

    Remove these lines:

    //Pointer 2 ddraw obj
    LPDIRECTDRAW lpdd;

    //used to hold the DirectDraw surface description
    DDSURFACEDESC ddsd;

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

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

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

Page 2 of 2 FirstFirst 12
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, 04:56 PM
  3. OpenGL: How to make surface shiny
    By ting in forum Game Programming
    Replies: 6
    Last Post: 06-18-2008, 06:09 PM
  4. Another weird error
    By rwmarsh in forum Game Programming
    Replies: 4
    Last Post: 09-24-2006, 11:00 PM
  5. Please help with my game
    By jjj93421 in forum Game Programming
    Replies: 10
    Last Post: 04-13-2004, 12:38 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21