Look for "D3DXLoadMeshFromX" in the DX SDK.