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.



LinkBack URL
About LinkBacks


