You need at least DirectX 9 of 2006 or newer for working with Gamestudio. Otherwise, use the DX8 libraries. But the engine won't then properly work either.