应将 IGeCurve * spCurFirst, *spCurLast 写成 CComPtr spCurFirst, spCurLast想要遍历获得首曲线,可以不用bool变量来判断,可以判断获得首曲线是否为空#program once 需要放到文件开头