I am having a hell of a time trying to figure out why I get these weird errors. I bought the book 'Beginning Game Programming' by 'Johathan S. Harbour' and really think it is one of the best books I have purchased, and i've purchased lots in the last year or so. I know C++ well now and am following everything in the book so far without problems. Also, i'm not new to DirectX as I have made a Tile Engine with Direct X 8, and now want to learn Direct X 9 as I hear it is much easier and required much less code, especially with the helper functions. My problem is I have had errors pop up when trying to compile the code given on the included CD. Every direct X program works perfectly until I hit chapter 8. I have done everything, including uninstalling Direct X 9 and reinstalling it again. Also, it is the only SDK on my computer as I have uninstalled them before installing 9B. The errors I get are listed below:
--------------------Configuration: redonex9 - Win32 Debug--------------------
c:\scratch\........thisdx9\game.cpp(97) : error C2065: 'D3DXSPRITE_ALPHABLEND' : undeclared identifier
c:\scratch\........thisdx9\game.cpp(116) : error C2660: 'Draw' : function does not take 5 parameters
Error executing cl.exe.
redonex9.exe - 2 error(s), 0 warning(s)
Any help would be greatly appreciated, thanks in advance!