   Linker Error
  I''m trying to start learing Direct X and I''m using VC++. Every time I compile it gives me the link error posted at the bottom. I''ve put the include file and lib files at the top of the search files, but I think I''m still missing something. I''ve tried to compile other demo dx programs from books and I keep getting this same error. It''s the only error listed. Can somebody tell me how to fix this? Thanks.Linking...testing 1.obj : error LNK2001: unresolved external symbol _DirectDrawCreateEx@16testing 1.obj : error LNK2001: unresolved external symbol _IID_IDirectDraw7Debug/testing 1.exe : fatal error LNK1120: 2 unresolved externalsError executing link.exe.~Danny~  
  I'm not sure what you mean by placing the lib files at the top of the search files, but in order to link with certain libraries, you must append them to the libs line in your project options. What you need to do is go to Project->Project Options and then navigate to the Link tab. Somewhere in the middle is a TextEdit box which has all of the libraries that you are currently linked with (You will see things like kernel32.lib, win32.lib and many other windows libs here). You want to scroll over to the end of this line and add the appropriate libraries that DirectX uses. Now I am an OpenGL fan and have never used DirectX before, but you will probably add something like directx.lib or dx.lib or something like that to this line. Your DirectX book should tell you which ones you want.    - be pround to be out of your mind  [edited by - WhtRbt on November 21, 2002 3:01:27 PM];  also don''t forget to include dxguid.lib for all your direct x needs.  