obviosly replace the below directories with your own
need to execute this command from the x86 development console
cl tr6le.cpp /IDXSDK\Include /link /DEBUG /LIBPATH:DXSDK\Lib\x86 d3d9.lib d3dx9.lib comctl32.lib tr6le.res user32.lib gdi32.lib dxguid.lib dinput8.lib xinput.lib
Also you need to compile the resources with before:
rc tr6le.rc