just add dxguid.lib to the linker settings