   Link and other types of errors
  Hello there, let me start by saying that I do have readed the FAQ and this is not there. Well, listen this, I've just got this book "Strategy Game Programming with DirectX 9.0" (before you start saying that I should speak with the guy who wrote it I'll tell you that I've gotten here following the track of Todd Barron, but I can't seem to find him), anyway, I downloaded the sample code of the book and found out that I can't make most of it work, I get mostly linking errors, sadly I do not have the compiler output here with me, but I remember that it said that they were inside "dsound.h" I think.. also other codes said that they couldn't link with the file "d3dx9dt.lib", and I've searched, but that file doesn't exist either in the code nor in the DX SDK. So if anyone wold be so kind of lending me a hand I would really appretiate it.btw: I have WinXP SP2, DX SDK Apr2006, Visual Studio 6.0 and 8.0 (2005) (the code is for VC++ 6.0).also I can't seem to remember the page from where I got the code, but it's likely to be found on google, but I'm on a real rush right now.Thanks in advance.ZippoLag.   
  One possible reason for the link errors, and very common when people are starting out with DirectX, is that you haven't got the paths setup properly inside the project to point towards DirectX is stored. Also another obvious point is to make sure you have the DirectX SDK installed. Normally now-a-days with the latest versions available at msdn.microsoft.com/directx it will set itself up in the IDE and all the paths neccesary.Also another thing that can help is copy/paste the specific link error so people can help.   ;  It is stated in the April SDK Readme that it will not set the paths for the DX libs and headers AFAIK.   ;  Hi ZippoLag,I looks like the book and the code you have relies on an older version of the SDK than the one you have (april 2006).As you noted, the file "d3dx9dt.lib" is not in the april 2006 SDK. D3DX used to be implemented as a static library in older versions of the SDK and AFAIK "d3dx9dt.lib" is a static library from an older version of the SDK.In more recent versions of the SDK, D3DX is implemented as a dll and the .lib file you link to is an import library for the dll, not a static library.If you want to use the code as is, I think you will have to go back to an older version of the SDK. Which version, I couldn't say ( I notice the book was published in 2003 ).The "core" interfaces should be pretty much the same in any version of the SDK for DX9 but for the D3DX part(Direct3D extensions), some of interfaces, functions and structures have changed quite a bit over the years. If you want to try and adapt the code to work with the SDK you have, then note that the latest versions of the SDK do not "support" VC++ 6.0, use VS .Net 2003 or VS .Net 2005.HTH,Cambo_frog   ;  yeah, thanks, I hve everything setted up right, so I was guessing I needed an older version of the SDK.It's a shame, because I really liked the book.Anyway, if someone want's to check out the code you can get it from:http://wordware.com/files/games/files/RTSSource.zip   