Your best bet is to try to reinstall DirectX. What are you running when you get the error will be a clue. I would check the programs requirements to see if you are running the correct OS and DirectX versions needed. If you are then check that programs help site/forum page. There may be a fix you need to download.