I know it's been some time since this thread was initially posted but just for reference for anyone revisiting (as I did) here's the solution that worked for me.
Note: Using DirectX 9
In project properties >> configuration properties >> linker >> input under additional dependencies make sure you have d3dx9.lib . My list of additional dependencies looks as follows:
cubeenMember Since 22 Mar 2012
Offline Last Active Feb 04 2014 08:02 AM