Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ 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 September 15th, 2003, 05:56 PM
Registered User
 
Join Date: Sep 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default I.H. Beg VC++ Add Member Function

On Page 370 of Ivor Horton's Beginning Visual C++ about using the "Add Member Function" pop-up it worked as described for the first operator overload (+), but with the other two the function was added to the .cpp file but the definition was not added to the .h file.

I had to manually added the definition into the .h file.

With the cursor on the definition in the .h file I can click the magic wand buttion in the Wizard Bar and go to the definition, but if I click again to go back a pop-up tells me the definition cannot be found.

What am I doing wrong?

Thanks

 
Old September 25th, 2003, 01:25 PM
Registered User
 
Join Date: Sep 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In the Errata:

Page 443: Making the CCalculator Class Safe to Use
Due to what appears to be a bug in the ClassWizard, using the Add Member Function dialog to add the assignment operator to the CCalculator class will not work. An implementation will be provided in the Calculator.cpp file but no declaration will be added to the class definition in Calculator.h.







Similar Threads
Thread Thread Starter Forum Replies Last Post
Call to a member function query() on a non-object Boszky Pro PHP 0 November 15th, 2007 09:37 AM
Add Function deontae45 SQL Server 2000 2 September 25th, 2006 11:31 AM
add function to custom toolbar Vince_421 Access VBA 0 May 20th, 2006 10:36 AM
findfirst function and vc++ amira C# 0 September 29th, 2005 07:42 AM
Creating a function to add a new worksheet edcaru Excel VBA 2 August 16th, 2004 01:30 PM





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