View Single Post
  #1 (permalink)  
Old October 23rd, 2014, 03:39 PM
porsche993997 porsche993997 is offline
Registered User
Points: 16, Level: 1
Points: 16, Level: 1 Points: 16, Level: 1 Points: 16, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2013
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 17 Defining a Sketch Class. Page 1043

Form1(void) : drawing(false), firstPoint(0),
elementType(ElementType::LINE), color(Color::Black),
tempElement(nullptr), sketch(gcnew Sketch())
{
InitializeComponent();
//
SetElementTypeButtonsState();
SetColorButtonsState();
//
}

Hi,
When I try to compile the above code I get the following error:
error C2614: 'CLRSketcher::Form1' : illegal member initialization: 'sketch' is not a base or member.

Any help will be greatly appreciated.
Thanks.