Actually its a file called D3DXDLLJune26.zip in the Sphere demo directory that must be installed. I had those errors too . After installing the new dll, the problems disappeared .