Wrox Programmer Forums
|
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
 
Old July 23rd, 2006, 04:10 AM
Authorized User
 
Join Date: May 2006
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default Defining Classes for Elements; page 734

To clarify my understanding of a few points:

a) Figure 14-15. The path in the '.h file' box points to ...\Elements.h and the '.cpp file' box points to ...\Elements.cpp (Where the '...\' will include the rest of the particular path to the files from the C: or D: drives, etc.)


b) Second paragraph, below Figure 14-15; 4th line:
I think that this should refer to figure 14-15 not Figure 14-14.


c)Second paragraph, below Figure 14-15; final sentence: ...'each with a constructor and virtual destructor.'

It appears that despite ticking the virtual destructor box, as indicated in Figure 14-15, for each definition, none of the subsequent destructors (CLine, CRectangle, CCircle or CCurve) have virtual destructors in Elements.h. Only the destructor in the definition of 'class CElement : public CObject' has virtual against it. (I have checked this with the code in Elements.h in '571974 Code from the book'.)








Similar Threads
Thread Thread Starter Forum Replies Last Post
help with defining in the database derrida BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 April 14th, 2007 03:17 AM
Exist Finder classes to find elements into List? jeusdi .NET Framework 1.x 4 February 19th, 2007 01:31 PM
problem defining namespace for .aspx page pratik28 ASP.NET 2.0 Basics 0 October 26th, 2006 06:43 AM
Masked Elements; Page 815; Ch 15 Nick Y BOOK: Ivor Horton's Beginning Visual C++ 2005 0 July 24th, 2006 02:12 PM
Display web page elements all at the same moment karib HTML Code Clinic 3 October 10th, 2004 11:44 AM





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