Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Nothingness

3 errors

This topic is 5916 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im brand new to DirectX, and when i try to just initilize Direct draw, it says "missing '';'' before identifier ''lpdd4''" and no matter what i do, it stays with 3 errors because of that. #include <windows.h> #include <windowsx.h> #include <ddraw.h> LPDIRECTDRAW lpdd = NULL; //here it says the error LPDIRECTDRAW4 lpdd4 = NULL; here are the other errors: C:\Windows\Desktop\DirectX programs\Dx1\DX1.cpp(7) : error C2501: ''LPDIRECTDRAW4'' : missing storage-class or type specifiers C:\Windows\Desktop\DirectX programs\Dx1\DX1.cpp(7) : fatal error C1004: unexpected end of file found Error executing cl.exe.

Share this post


Link to post
Share on other sites
Advertisement
i believe you arent using the correct headers; the compiler is saying LPDIRECTDRAW4 hasnt been defined yet

Share this post


Link to post
Share on other sites
You also have to link to ddraw.lib and dxguid.lib
[EDIT]Also link with -fvtable and -thunks[/EDIT]

[edited by - Quantrizi on May 5, 2002 8:04:46 PM]

Share this post


Link to post
Share on other sites
i have linked DirectX libs, and include files, that was the first things i have tried, but no matter what i do, it dosnt read LPDIRECTDRAW4, i have put in LPDIRECTDRAW2(and that worked) LPDIRECTDRAW3(this worked), then i''ve tried LPDIRECTDRAW4/7 and after 3 none worked. I dont no what to do, it dosnt want to read LPDIRECTDRAW4 for nothing. All im trying to do is initilize directX and nothing more, and if its going to be this hard to error check, im in for a ride.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!