There used to be a utility included in the DirectX SDK called Convert3ds. It could convert files made by 3DS Max to .X files that could be directly consumed in DirectX.
I just installed the DirectX SDK (Dated March 2008) and could not find the utility. The only mention to it is that it was last published in the April 2007 DirectX update but is now deprecated. What I can't find is whether or not there is a new sanctioned way for converting 3Ds files to .X files.