Wrox Programmer Forums
|
BOOK: Ivor Horton's Beginning Visual C++ 2010
This is the forum to discuss the Wrox book Ivor Horton's Beginning Visual C++ 2010 by Ivor Horton; ISBN: 9780470500880
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Ivor Horton's Beginning Visual C++ 2010 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 12th, 2012, 04:19 PM
Registered User
 
Join Date: May 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default enumerated types Chapter 15

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
More Help with chapter 15 happyandstable BOOK: Beginning ASP.NET 4 : in C# and VB 3 March 12th, 2012 03:19 AM
Creating Enumerated Property in a Class sg48 Visual Basic 2008 Essentials 0 May 4th, 2010 04:38 PM
Chapter 13:page 439,Queries and Anonymous types Arya BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 February 2nd, 2010 11:22 PM
Converting enumerated value to readable value maigoro ASP.NET 3.5 Basics 2 April 11th, 2008 09:46 AM
Chapter 15 moggie BOOK: Beginning ASP 3.0 2 October 19th, 2004 01:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.