Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 12th, 2012, 04:19 PM
Registered User
Points: 11, Level: 1
Points: 11, Level: 1 Points: 11, Level: 1 Points: 11, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2012
Location: United Kingdom
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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:28 AM.


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