Wrox Programmer Forums
|
BOOK: Ivor Horton's Beginning Visual C++ 2008 ISBN: 978-0-470-22590-5
This is the forum to discuss the Wrox book Ivor Horton's Beginning Visual C++ 2008 by Ivor Horton; ISBN: 9780470225905
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Ivor Horton's Beginning Visual C++ 2008 ISBN: 978-0-470-22590-5 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 July 12th, 2009, 12:05 PM
Registered User
 
Join Date: Apr 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Compiling non-clr Sketcher Chapter18

When I create a MFC project, copy over the code files, and compile, I get errors.

The solutions, projects and resource files are not provided. Although the resource editor work-along in the previous chapters is great for learning to use VC08 features, it is a bit irritating to require manually doing all those steps. And the theApp.mbHiColorIcons, ....



1>------ Rebuild All started: Project: Sketcher, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'Sketcher', configuration 'Debug|Win32'
1>Compiling...
1>stdafx.cpp
1>Compiling...
1>Sketcher.cpp
1>MainFrm.cpp
1>ChildFrm.cpp
1>SketcherDoc.cpp
1>c:\c\08p\sketcher\sketcher\pendialog.h(15) : error C2065: 'IDD_PENWIDTH_DLG' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(20) : error C2065: 'ID_COLOR_BLACK' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(20) : error C2065: 'ID_COLOR_BLACK' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(21) : error C2065: 'ID_COLOR_RED' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(21) : error C2065: 'ID_COLOR_RED' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(22) : error C2065: 'ID_COLOR_GREEN' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(22) : error C2065: 'ID_COLOR_GREEN' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(23) : error C2065: 'ID_COLOR_BLUE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(23) : error C2065: 'ID_COLOR_BLUE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(24) : error C2065: 'ID_ELEMENT_LINE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(24) : error C2065: 'ID_ELEMENT_LINE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(25) : error C2065: 'ID_ELEMENT_RECTANGLE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(25) : error C2065: 'ID_ELEMENT_RECTANGLE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(26) : error C2065: 'ID_ELEMENT_CIRCLE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(26) : error C2065: 'ID_ELEMENT_CIRCLE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(27) : error C2065: 'ID_ELEMENT_CURVE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(27) : error C2065: 'ID_ELEMENT_CURVE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(28) : error C2065: 'ID_COLOR_BLACK' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(28) : error C2065: 'ID_COLOR_BLACK' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(29) : error C2065: 'ID_COLOR_RED' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(29) : error C2065: 'ID_COLOR_RED' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(30) : error C2065: 'ID_COLOR_GREEN' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(30) : error C2065: 'ID_COLOR_GREEN' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(31) : error C2065: 'ID_COLOR_BLUE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(31) : error C2065: 'ID_COLOR_BLUE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(32) : error C2065: 'ID_ELEMENT_LINE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(32) : error C2065: 'ID_ELEMENT_LINE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(33) : error C2065: 'ID_ELEMENT_RECTANGLE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(33) : error C2065: 'ID_ELEMENT_RECTANGLE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(34) : error C2065: 'ID_ELEMENT_CIRCLE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(34) : error C2065: 'ID_ELEMENT_CIRCLE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(35) : error C2065: 'ID_ELEMENT_CURVE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(35) : error C2065: 'ID_ELEMENT_CURVE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(36) : error C2065: 'ID_PENWIDTH' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(36) : error C2065: 'ID_PENWIDTH' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(37) : error C2065: 'ID_ELEMENT_TEXT' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(37) : error C2065: 'ID_ELEMENT_TEXT' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(38) : error C2065: 'ID_ELEMENT_TEXT' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherdoc.cpp(38) : error C2065: 'ID_ELEMENT_TEXT' : undeclared identifier
1>SketcherView.cpp
1>c:\c\08p\sketcher\sketcher\scaledialog.h(15) : error C2065: 'IDD_SCALE_DLG' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\textdialog.h(15) : error C2065: 'IDD_TEXT_DLG' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherview.cpp(34) : error C2065: 'ID_ELEMENT_MOVE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherview.cpp(34) : error C2065: 'ID_ELEMENT_MOVE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherview.cpp(35) : error C2065: 'ID_ELEMENT_DELETE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherview.cpp(35) : error C2065: 'ID_ELEMENT_DELETE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherview.cpp(37) : error C2065: 'ID_ELEMENT_SENDTOBACK' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherview.cpp(37) : error C2065: 'ID_ELEMENT_SENDTOBACK' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherview.cpp(38) : error C2065: 'ID_VIEW_SCALE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherview.cpp(38) : error C2065: 'ID_VIEW_SCALE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherview.cpp(365 ) : error C2065: 'IDR_CURSOR_MENU' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherview.cpp(372 ) : error C2065: 'ID_COLOR_BLACK' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherview.cpp(374 ) : error C2065: 'ID_COLOR_RED' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherview.cpp(376 ) : error C2065: 'ID_COLOR_GREEN' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherview.cpp(378 ) : error C2065: 'ID_COLOR_BLUE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherview.cpp(383 ) : error C2065: 'ID_ELEMENT_LINE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherview.cpp(385 ) : error C2065: 'ID_ELEMENT_RECTANGLE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherview.cpp(387 ) : error C2065: 'ID_ELEMENT_CIRCLE' : undeclared identifier
1>c:\c\08p\sketcher\sketcher\sketcherview.cpp(389 ) : error C2065: 'ID_ELEMENT_CURVE' : undeclared identifier
1>FileView.cpp
1>c:\c\08p\sketcher\sketcher\fileview.cpp(152) : error C2039: 'GetContextMenuManager' : is not a member of 'CSketcherApp'
1> c:\c\08p\sketcher\sketcher\sketcher.h(16) : see declaration of 'CSketcherApp'
1>c:\c\08p\sketcher\sketcher\fileview.cpp(152) : error C2227: left of '->ShowPopupMenu' must point to class/struct/union/generic type
1>c:\c\08p\sketcher\sketcher\fileview.cpp(229) : error C2039: 'm_bHiColorIcons' : is not a member of 'CSketcherApp'
1> c:\c\08p\sketcher\sketcher\sketcher.h(16) : see declaration of 'CSketcherApp'
1>c:\c\08p\sketcher\sketcher\fileview.cpp(233) : error C2039: 'm_bHiColorIcons' : is not a member of 'CSketcherApp'
1> c:\c\08p\sketcher\sketcher\sketcher.h(16) : see declaration of 'CSketcherApp'
1>c:\c\08p\sketcher\sketcher\fileview.cpp(248) : error C2039: 'm_bHiColorIcons' : is not a member of 'CSketcherApp'
1> c:\c\08p\sketcher\sketcher\sketcher.h(16) : see declaration of 'CSketcherApp'
1>ClassView.cpp
1>c:\c\08p\sketcher\sketcher\classview.cpp(298) : error C2039: 'm_bHiColorIcons' : is not a member of 'CSketcherApp'
1> c:\c\08p\sketcher\sketcher\sketcher.h(16) : see declaration of 'CSketcherApp'
1>c:\c\08p\sketcher\sketcher\classview.cpp(313) : error C2039: 'm_bHiColorIcons' : is not a member of 'CSketcherApp'
1> c:\c\08p\sketcher\sketcher\sketcher.h(16) : see declaration of 'CSketcherApp'
1>c:\c\08p\sketcher\sketcher\classview.cpp(321) : error C2039: 'm_bHiColorIcons' : is not a member of 'CSketcherApp'
1> c:\c\08p\sketcher\sketcher\sketcher.h(16) : see declaration of 'CSketcherApp'
1>ViewTree.cpp
1>OutputWnd.cpp
1>PropertiesWnd.cpp
1>c:\c\08p\sketcher\sketcher\propertieswnd.cpp(97 ) : error C2039: 'm_bHiColorIcons' : is not a member of 'CSketcherApp'
1> c:\c\08p\sketcher\sketcher\sketcher.h(16) : see declaration of 'CSketcherApp'
1>Generating Code...
1>Build log was saved at "file://c:\c\08p\Sketcher\Sketcher\Debug\BuildLog.htm"
1>Sketcher - 67 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

Last edited by mwindham; July 14th, 2009 at 03:55 PM.. Reason: problem resolved





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter18 Beg C#2005 - Creating New Database teamster C# 2005 0 March 17th, 2006 01:02 AM
Sketcher Applet Problems gerrymurphy BOOK: Beginning Java 2 9 December 14th, 2004 10:49 AM
Spiral Sketcher freezotic BOOK: Beginning Java 2 0 September 4th, 2004 01:08 PM
Sketcher Source JCScoobyRS Java GUI 1 November 17th, 2003 03:17 PM
sketcher koekke Wrox Book Feedback 1 October 20th, 2003 09:43 AM





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