well, download directx june 2010 sdk and place it into c: disk and put it inside windows for exapmle .In visual studio go to project setting and config manager and choose all configurations ( debug + release)
linker -> include directories
Link to the folder „Include“ in c disk direct sdk folder
same goes for the library directories , link to the lib folder inside the direcx sdk directory.
At least link to the library via ii#pragma comment(lib, „d3d9.lib“)
and include d3d9.h
i Dont touched it for years so i hope u can understand what i mean