Advertisement

DirectDraw error question

Started by June 17, 2001 09:23 PM
4 comments, last by Sickilla 23 years, 7 months ago
Why doesn't this work: LPDIRECTDRAW lpdd_temp = NULL; // Temporary LPDIRECTDRAW lpdd = NULL; // actual . . . // First create the IDirectDraw interface DirectDrawCreate(NULL,&lpdd_temp,NULL); // Query for latest interface lpdd_temp->QueryInterface(IID_IDirectDraw7, (LPVOID *)&lpdd); ????????????????????/ it gives me this err: error LNK2001: unresolved external symbol _IID_IDirectDraw7 fatal error LNK1120: 1 unresolved externals what does it mean? any help would be greatly appreciated. Edited by - felisandria on June 18, 2001 12:52:24 PM
X4J
Include dxguid.lib or something like that. I don''t even use DirectX anymore, but this question gets asked so many times even I know the answer .

[Resist Windows XP''s Invasive Production Activation Technology!]
Advertisement
You need to add dxguid.lib and ddraw.lib in your project, found in the lib directory of the DX sdk.
Thanx alot guys

i spent hours troubleshooting this and this is all i had to do.
X4J
I did the same thing not too long ago. The way I got it to work was by putting #define INITGUID at the top of my main source file, but including the lib in the project seems like a better idea.
  #pragma comment(lib, "dxguid.lib")  

verra naice, if I do say so myself
I''ve started using those whenever I include a header that needs a lib. It makes using it mcuh easier, as you don''t have to look up what library is needed to compile (it still needs to be in the library path though)

Magmai Kai Holmlor
- The disgruntled & disillusioned
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara

This topic is closed to new replies.

Advertisement