You're welcome gsizzle10.
I see. I use VS2010 as well. I learned how to set up DirectX from books rather than online tutorials, but I'll go over the process here. First of all, it is best you get the June 2010 SDK, use the first link I provided earlier if you don't already have it. Once you have the SDK installed, you can create a new project. (I recently went over this in a different thread but here goes):
Go to File -> New -> Project and create an "Empty Project".
Once you have the project created, you need to add the required directories so that the required headers and libs for DirectX are successfully found upon compiling the program.
Go to Project -> (Project name's) Properties -> Configuration Properties -> VC++ Directories. You need to edit the "Include Directories" and "Library Directories".
In "Include Directories", add
and in "Library Directories" add
(for 32-bit, and $(DXSDK_DIR)Lib\x64 for 64-bit).
"$(DXSDK_DIR)" is a macro that is set when the DirectX SDK is installed, and corresponds to the directory that the SDK is installed in. (The default directory is "C:\Program Files\Microsoft DirectX SDK (June 2010)\ ", and this is essentially substituted with "$(DXSDK_DIR)" ).
Go to Project -> (Project name's) Properties -> Configuration Properties -> Linker -> Input. You need to add the required lib files. I think that for a DirectX 9 application you'd need to add these
(d3dx9d.lib is for the Debug builds -- d3dx9.lib should be used instead for Release builds)
Last, add the related Windows and DirectX 9 headers to your code:
I think that's all that needs to be set for a project to successfully compile with DirectX 9.
EDIT: When installing the SDK it's best you choose "DirectX Runtime Support -- Debug" (rather than Retail). This makes debugging the application easier.