I did. It is linked via the Project properties include and lib directories and I have added the seperate lib files d3dx9.lib and d3d9.lib

It did not work.