p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Ivor Horton's Beginning Visual C++ 2010 (http://p2p.wrox.com/forumdisplay.php?f=569)
-   -   Chapter 17 Defining a Sketch Class. Page 1043 (http://p2p.wrox.com/showthread.php?t=93735)

porsche993997 October 23rd, 2014 03:39 PM

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.


All times are GMT -4. The time now is 09:32 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.