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 December 19th, 2011, 02:13 PM
Authorized User
 
Join Date: Oct 2011
Posts: 12
Thanks: 5
Thanked 0 Times in 0 Posts
Default Forward declarations not legal in C++/CLI?

In Ex2_13, it shows of forward enum declaration at the top of page 112. When I compile this program in Visual Studio 2010 it gives me the following error message. (I entered the program manually).
--
CEx2_13.cpp(7): error C2599: 'Suit' : forward declaration of enum type is not allowed
--

Any ideas on how I can fix this will be appreciated. Thanks.

golfer43
 
Old January 31st, 2012, 03:20 PM
Registered User
 
Join Date: Jan 2012
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
Default

Have you used () instead of {} when defining the enum?
The Following User Says Thank You to singleta For This Useful Post:
golfer43 (February 1st, 2012)
 
Old February 1st, 2012, 09:30 AM
Authorized User
 
Join Date: Oct 2011
Posts: 12
Thanks: 5
Thanked 0 Times in 0 Posts
Default

You're right! My eyes are the first to go! :)





Similar Threads
Thread Thread Starter Forum Replies Last Post
c++/cli and c# elvisfeverr C++ Programming 2 December 19th, 2011 02:17 PM
c# Forward declarations xyoavx C# 0 May 30th, 2009 07:44 AM
Forward declarations in c# xyoavx PHP How-To 0 May 30th, 2009 07:01 AM
C++/CLI to C# jsbsudha XML 1 November 19th, 2007 02:30 PM
set default for report to legal and landscape Loralee Access 2 November 28th, 2004 03:06 PM





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