LPDIRECTDRAW7
When I declare:
LPDIRECTDRAW7 lpDD7;
LPDIRECTDRAWSURFACE7 lpSurf7Primary;
I get:
--------------------Configuration: Test - Win32 Debug--------------------
Compiling...
main.cpp
D:\Developments\Test\main.cpp(23) : error C2146: syntax error : missing '';'' before identifier ''lpDD7''
D:\Developments\Test\main.cpp(23) : error C2501: ''LPDIRECTDRAW7'' : missing storage-class or type specifiers
D:\Developments\Test\main.cpp(23) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
Test.exe - 3 error(s), 0 warning(s)
What is wrong? I know this works because I''ve done it before. What''s wrong in this case?
Make sure that you are including "ddraw.h." And also make sure that you have included the library with your program. You may also want to make sure that your compiler''s include/library directories, have the correct DirectX directory at the very top of the list.
------------------------------
Trent (ShiningKnight)
NovaStorm Games
Project: OpenGL baby. None of that new-fangled Die-rect Three Dee
------------------------------
Trent (ShiningKnight)
NovaStorm Games
Project: OpenGL baby. None of that new-fangled Die-rect Three Dee
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement