View Single Post
  #1 (permalink)  
Old September 6th, 2008, 09:15 AM
chang82 chang82 is offline
Registered User
 
Join Date: Sep 2008
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem : Sketcher in chapter 14

I have two questions
first : figure 14-13 in page 732 is true ? if it is true it mean that CElement is a base class of CObject ? (CObject derived from CElement)
second : I am confusing on page 734 in 2nd paragraph "The class wizard ..."
After "Generic C++ Class Wizard - Sketcher" window pop up I do the following steps
1. I changed Line.h in .h file dialog box to "...\Sketcher\CElements.h" and changed Line.cpp in .cpp file dialog box to "...\Sketcher\CElements.cpp" (follow the name in fig 14-14)
2. The other options such as Base class, Access, Virtual destructor I follow to fig 14-15
3. When I clicked "Finish" button vc++ ask me to confirm to merge CLine class to CElement.h & Celement.cpp, I click "yes" and "yes" (for .h and .cpp)
4. After I click 2nd "yes" the "Add Class - Sketcher" window pop up automatically (In my opinion it's something wrong here ???)
5. I go back to Elements.h to find CLine definition but Element.h still contain only one class (class CElement : public CObject) and nothing about CLine definition
Now I need someguru to help me from these problem
Thank you in advance
Chang