Direct X 7 is going back quite a ways. I would try some compatibility modes as a first step (Right click, properties, run as Windows XP, or 95/98)
After that there is the more complex Application Compatibility Toolkit from Microsoft.
Beyond that virtualization of older OS is pretty much the only way to get older games to run.