I keep getting the following error when i compile my code and am not sure how to fix it
.... error C2664: 'CObArray::Add' : cannot convert parameter 1 from 'CPolyline *' to 'CObject *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
I have a CPolylineArray class that extends CObArray class
This is the offending bit of code. I have a sample bit of code from my lecture and this seems to match apart from the fact that his compiles and mine does not??!!
CPolyline* pActivePolyline = new CPolyline();