DirectX issue can be caused by outdated drivers. I suggest updating Video card driver to the latest version first.
If the issue persists, try DirectX End-User Runtime Web Installer which provides updates to 9.0c and previous versions of DirectX. Here is the link:http://www.microsoft.com/downloads/details.aspx?FamilyId=2DA43D38-DB71-4C1B-BC6A-9B6652CD92A3&displaylang=en
if that doesn't work, you might have to uninstall your game and reinstall it. what game is it that your having this issue with? and did your recently remove any viruses?