IDirectDraw4 problem!!

Started by
4 comments, last by Bloodseeker 23 years, 3 months ago
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
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.
Oh yes, I do have DX sdx 6.0
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.
I know, but I only need DirectDraw4, which MUST work with the 6.0-sdk
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

This topic is closed to new replies.

Advertisement