Wrox Programmer Forums
|
BOOK: Professional VB 2005 ISBN: 0-7645-7536-8
This is the forum to discuss the Wrox book Professional VB 2005 by Bill Evjen, Billy Hollis, Rockford Lhotka, Tim McCarthy, Rama Ramachandran, Kent Sharkey, Bill Sheldon; ISBN: 9780764575365
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional VB 2005 ISBN: 0-7645-7536-8 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 January 20th, 2006, 09:35 AM
Registered User
 
Join Date: Jan 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default wrong code in book

regarding IDisposable
On page 249 he says to put in the code

Public Class Person
Implements IDisposable

Then it says
This interface defines two methods—Dispose and Finalize—that need to be implemented in the class.
Visual Studio automatically inserts both of these methods into your code:

But it didn't

I had to put in the methods myself, with his modifications

Private Overloads Sub Dispose(ByVal disposing As Boolean)
If Not Me.disposed Then
If disposing Then
‘ TODO: put code to dispose managed resources
mPhones = Nothing
End If
‘ TODO: put code to free unmanaged resources here
End If
Me.disposed = True
End Sub

But mphones isn't acceptable because its implemented in the employee class.

The problem is that the rest of the chapter builds on this. How do I fix this so the rest of the chapter and perhaps subsequent chapters are useful to me.

dennist685

 
Old February 21st, 2006, 11:28 AM
Registered User
 
Join Date: Feb 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

>> Visual Studio automatically inserts both of these methods into
>> your code:

>> But it didn't

It will. If you hit the enter key after the text

Implements IDisposable

- hope this helps

- Rama





Similar Threads
Thread Thread Starter Forum Replies Last Post
Do I have the wrong book? tbroom BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 1 August 10th, 2006 09:23 PM
Bought the wrong book? peterknapp Wrox Book Feedback 3 September 13th, 2005 11:20 AM
Wrong web site reference from the book JAVA2 jrnicl2 Wrox Book Feedback 2 October 15th, 2003 10:18 AM
Wrong web site reference from the book JAVA2 jrnicl2 All Other Wrox Books 0 October 15th, 2003 07:03 AM
Is the book wrong or me? G-Zilla Wrox Book Feedback 1 July 7th, 2003 09:58 PM





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