Make sure your directories all point to the correct location for your .lib files for direct x in the compiler configuration.
You have to show Visual C++ where to find the .lib files for Direct X.
Ok, if you load your project, and then go to Tools menu, go down to Options submenu.
A Box will appear...on the left hand side, go down under Projects and Solutions...highlight the VC Directories.
Then, look to the top, right hand side, and the pull down box: Show Directories for...
It starts out saying Executable Files...pull it down, and you can change include files or library files...
That is where you enter the proper directories on your hard drive for Visual C++ to find your lib and inc files.
Hope this helps,
Jeff C
P.S. You must have Microsoft’s DirectX 9.0c SDK from August 2007.