I want to use DirectDraw7. I include DDRAW.H and add a DDRAW.LIB to Win32Project. My code is:
LPDIRECTDRAW lpdd=NULL;
LPDIRECTDRAW lpdd7=NULL;
DirectDrawCreate(NULL, &lpdd, NULL);
lpdd->QueryInterface(IID_IDirectDraw7, (LPVOID*)lpdd7);
And there is a error:
Error 4 error LNK2001: unresolved external symbol _IID_IDirectDraw7 DDraw_Using.obj
Why i have this error IID_IDirectDraw7 is defind in ddraw.h. I using DXSDK 8.1. Thanks.

DirectDraw interface
jim_slc
Won't work, because the second parameter expects to take in a void**, which is not lpdd7 is (it only has one indirection). The reason it needs to be a void **, is because it is an out parameter which will hold the pointer to the new interface. Better code would be:
lpdd->QueryInterface(IID_IDirectDraw7, (LPVOID*)&lpdd7);
T-oha
OK. this is not actual already. I was need to write #define INITGUID
:)))