   unresolved external symbol IID_IDirectDraw7
  Hi guys. I'm trying to load bitmaps in my BlackJack game (windows platform using C++) and I'm getting the following linking error:BlackJack error LNK2001: unresolved external symbol _IID_IDirectDraw7I've got ddraw and ddutil.h included. Any ideas what could be wrong?   
  You must also link against the DX libraries. I'm not sure what they are for DX7 but you can find them in the SDK path in the sub directory 'libraries'.Illco   ;  You need to link with "dxguid.lib".   ;Hi vinb!Linking your project with "ddraw.lib" and "dxguid.lib" should solve your problem.Bye,Shane84   ;Quote:Original post by IllcoYou must also link against the DX libraries. I'm not sure what they are for DX7 but you can find them in the SDK path in the sub directory 'libraries'.IllcoDoh! Forgot about that. Unfortunately I'm doing this at work (don't tell my boss!) and I don't have the SDK installed. Looks like I'll have to wait till I get home to play. Is there a way to copy the libs to my PC without actually re-installing DirectX?   ;Quote:Original post by vinbDoh! Forgot about that. Unfortunately I'm doing this at work (don't tell my boss!) and I don't have the SDK installed. Looks like I'll have to wait till I get home to play. Is there a way to copy the libs to my PC without actually re-installing DirectX?You could define the GUID yourself, but then you still wouldn't have the appropriate headers. If you're compiling on VC6 then you can use anything up to DX5 IIRC, and DirectDraw really didn't change much between version 5 and 7 anyway.Personally I use the DirectX headers from Wine (about 100 kB) to avoid having to install the latest SDK whenever I need to compile my project at school.   ;  Thanks guys. By adding the line #pragma comment (lib, "dxguid.lib") I was able to fix that error. Now there's one more (looks similar)BlackJack error LNK2019: unresolved external symbol _DirectDrawCreateEx@16 referenced in function "void __cdecl InitDirectDraw(void)" (?InitDirectDraw@@YAXXZ)This is strange because the function is in ddraw.h and it is #included. Any idea what it's looking for here (I know you do, you guys are great!) ?   ;  #pragma comment (lib, "ddraw.lib")That's a linker error, it's got nothing to do with #include.   ;Quote:Original post by bakery2k1#pragma comment (lib, "ddraw.lib")That's a linker error, it's got nothing to do with #include.Absolutely awesome! It works now. I'll google "pragma comment" because I don't like including code that I don't understand.   