Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > BOOK: Ivor Horton's Beginning Visual C++ 2005
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #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 ?

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:44 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.