IDirectDraw4 problem!!
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
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.
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.
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.
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
Also make sure you have #include ddraw.h
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement