Does this error occur after you choose the rendering system or before?If the answer is after, then try changing the rendering system.If the answer is before, I'll leave this to someone with more knowledge on the game to answer.
Install directx from download page