   How do I get DXsdk 8.1 to work with C++?
  I''ve installed DirectX SDK 8.1 on my harddrive but how do I get it to work with Visual C++ 5.0? I added include and lib directories within the options of DevStudio but I get some very weird problems trying to compile a program that game with a book I bought... "Tricks of the Windows Game Programming GURUS Second Edition" - Published by Sams. Errors:Compiling...WinMain.cppC:\Program Files\DevStudio\MyProjects\Astroids\WinMain.cpp(134) : warning C4101: ''buffer'' : unreferenced local variableC:\Program Files\DevStudio\MyProjects\Astroids\WinMain.cpp(286) : warning C4101: ''hdc'' : unreferenced local variableLinking...WinMain.obj : error LNK2001: unresolved external symbol _DirectDrawCreateEx@16Debug/Astroids.exe : fatal error LNK1120: 1 unresolved externalsError executing link.exe.Did I install DirectX SDK 8.1 wrong?    John DiSanti of Santi Productions.  
  I believe directX 8.0 requires visual C++ 6.0  ;  put:#pragma comment(lib, "ddraw.lib")at the top of the program  ;  It''s not enough to add the path to the include and lib ... you have to add this :Menu Project/SettingsTab Link-> object/library modulesadd this library : ddraw.libor else easier write this line in your main cpp file :#pragma comment(lib,"ddraw.lib") __________________________Bruno WieckowskiLead ProgrammerExood4 Studios;quote:Original post by Mulligan  put:#pragma comment(lib, "ddraw.lib&quotat the top of the program Pragmaing in a lib file is just horrible coding practice.  Learn how to use your compiler eesh!  ;quote:Original post by Anonymous Poster   Learn how to use your compiler eesh!  In this case you mean the linker. D.V.  Carpe Diem   [edited by - DeltaVee on August 15, 2002 2:57:25 PM];  I have tried putting the ddraw.lib in the linkers settings but now I have 1 new error and the other errors are gone ! But this error says:Compiling...WinMain.cppC:\Program Files\DevStudio\MyProjects\Astroids\WinMain.cpp(135) : warning C4101: ''buffer'' : unreferenced local variableC:\Program Files\DevStudio\MyProjects\Astroids\WinMain.cpp(287) : warning C4101: ''hdc'' : unreferenced local variableLinking...C:\DXSDK\LIB\ddraw.lib : fatal error LNK1106: invalid file or disk full: cannot seek to 0x3b160894Error executing link.exe.I have 32 Gigabytes of harddrive space and the file does exist. I even made sure of it. Is there a possible way of fixing this? John DiSanti of Santi Productions.  ;  It still won''t work...    John DiSanti of Santi Productions.  ;  Have you tried putting the include/lib paths at the top of the directory list. By Default VC looks for the includes & libs from the top down, so it could be referencing an older version of DX that shipped with VC++5.CheersDazzer  ;  They''ve been on top but I still get that error...    John DiSanti of Santi Productions.  