First of all why you need it.
Direct X is a library of Application Programming Interfaces.
It makes the work for programmers easier.
Many engines based on DirectX
IF you have not the dll you need you havent all directx-versions before installed
to solve this problem you only need the webinstaller from microsoft directx, it will install all versions of directx you havent installed