In the CLR version of the Sketcher program the book asks you, page 936, to insert this code in Form1.h just after the using declarations.
Code:
enum class ElementType(LINE, RECTANGLE, CIRCLE, CURVE);
This results in a compiler error of "
forward declaration of enumerated types is not allowed " and on checking the Microsoft website it says that forward declaration of enumerated types is no longer supported.
Does anyone know a workaround for this as the Sketcher program takes up a substantial chunk of the later chapters of the book?
Many thanks,
Philip