Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with DirectDraw surfaces

Status
Not open for further replies.

tony00

Programmer
Apr 12, 2005
25
MX
I'm working with MS Visual C++ 6 and with DirectX SDK 9.

I've been trying to compile a program, but I allways gtet an error when I compile it.

I've included the DDraw.lib in the project, but it still won't work. This is the line where I recieve the error:

Code:
LPDIRECTDRAW7 lpdd = NULL;

And the error es:

Code:
f:\videojuegos\directdraw-surface.cpp(48) : error C2146: syntax error : missing ';' before identifier 'lpdd'
f:\videojuegos\directdraw-surface.cpp(48) : error C2501: 'LPDIRECTDRAW7' : missing storage-class or type specifiers
f:\videojuegos\directdraw-surface.cpp(48) : fatal error C1004: unexpected end of file found

Thank you
 
Did you have the correct include in you module:

#include <d3d9.h>

Hope this helps!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top