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
|