View Single Post
  #4 (permalink)  
Old October 29th, 2011, 05:33 PM
myassine myassine is offline
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default my solution

I know it's too late to answer your question but I am sure someone will run into the same problem one day.
My solution to the problem was as simple as adding a constructor for each of the elements in the Elements class.
Add the following lines in the Elements.cpp file:

CLine::CLine()
{
}
CRectangle::CRectangle()
{
}
CCircle::CCircle()
{
}
CCurve::CCurve()
{
}
CEllipse::CEllipse()
{
}

For some reason when I added the constructor for the Text class I got an error that the function already has a body so just forget about the Text constructor definition.
I hope this helps
Regards,
Marwa
Reply With Quote