Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Ivor Horton's Beginning Visual C++ 2005
This is the forum to discuss the Wrox book Ivor Horton's Beginning Visual C++ 2005 by Ivor Horton; ISBN: 9780764571978
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Ivor Horton's Beginning Visual C++ 2005 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
  #1 (permalink)  
Old September 6th, 2008, 09:15 AM
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

  #2 (permalink)  
Old September 8th, 2008, 02:29 AM
Registered User
 
Join Date: Sep 2008
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It's working now, after I'm re-created sketcher project at the beginning point. But I'm still confuse why the old sketcher project can not pass this step ?



Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 14: Caching problem dbcook8 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 4 October 19th, 2008 10:46 AM
Linker Error when buidling Sketcher - Chapter 14 Spasticus BOOK: Ivor Horton's Beginning Visual C++ 2005 6 January 11th, 2008 03:52 AM
Chapter 14 - use of CObject problem jabuck BOOK: Ivor Horton's Beginning Visual C++ 2005 0 February 15th, 2007 02:25 PM
Problem with code on Chapter 14 aargyri BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 3 June 6th, 2006 03:37 PM
chapter 14 Try It Out problem - update Jams30 BOOK: Beginning ASP 3.0 1 March 22nd, 2004 12:59 PM





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