i need to implement something similar...
CSpLine* CSdicap10Doc::AddSpLine(CArray<POINT,POINT>ControlPoints, CArray<POINT,POINT>Curvepoints)
{
CSpLine* pSpLine = new CSpLine(m_ControlPoints,m_CurvePoints);
m_oaSpLines.Add(pSpLine);
return pSpLine;
}
where ControlPoints and CurvePoints are...