I have a struct:
If I try and do something like myshape->ptPoints = ptPointsList; I get an error. I have the feeling I have to write a copy constructor but haven't written one for donkey's years. Can anyone please help?Code:struct shape { CString sName; CArray <CPoint, CPoint> ptPoints; int nSides; };




Reply With Quote