There is no file called "d3dx9.dll" included with the DX9 SDK. I guess what you mean is "d3dx9d.dll", with the d standing for Debug. Clear ?

And Clootie, nice idea with the Texture Function Subset !