You need to install DirectX 9 from here. Don't forget to restart your PC after that. If you have 32-bit Windows, just download the x86 version instead of amd64.
If you still have problems, try to update your graphics drivers by going into device manager -> display adapter -> right-click on your graphic card > update driver software > check online for updates.