set up directx foundation