It sounds like you might need to update or reinstall DirectX. For Windows 7, the easiest way to do this is by downloading and running the DirectX End-User Runtime Web Installer from Microsoft's official website. This installer will automatically update all necessary DirectX components, including Direct3D. Just produce sure to download it directly from Microsoft to avoid any potential security risks with third-party sites. Additionally, ensure that your Windows 7 is up-to-date with all the latest service packs and patches, as these often include updates to system libraries necessary for graphics functionalities.