Jump to content
  • Advertisement

Archived

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

Bloodseeker

IDirectDraw4 problem!!

This topic is 6520 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

I wrote a program in which I use a IDirectDraw interface and it worked. Now I wanted to "update" it to IDirectDraw4 because I need wide surfaces, but it says LPDIRECTDRAW4 and LPDIRECTDRAWSURFACE4 are not declared identifiers. Can anybody tell me what''s wrong? The includes are: #include "stdafx.h" #include "resource.h" #include #include #include #include #include #include #include #include #include #include The (relevant) libraries are: ddraw.lib dinput.lib dxguid.lib

Share this post


Link to post
Share on other sites
Advertisement
1) You need the DX SDK. Get it from msdn.microsoft.com/directx.
2) Copy all the files in the include directory to your MSVC\include dir, and all the files from the lib dir to the MSVC\lib dir.

Share this post


Link to post
Share on other sites
Then you can use the includes and libs from there, but LPDIRECTDRAW7 is the latest interface and you need an updated SDK if you wanna use that.

Share this post


Link to post
Share on other sites
If you are using MSVC++, make sure you have included the directories where the DX headers and libraries of the SDK are in the tools->options->directories tab. Make sure these are above the default ones.
Also make sure you have #include ddraw.h

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!