Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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 January 20th, 2006, 09:35 AM
Registered User
 
Join Date: Jan 2006
Location: Jerusalem, , Israel.
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

  #2 (permalink)  
Old February 21st, 2006, 11:28 AM
Registered User
 
Join Date: Feb 2006
Location: Stamford, CT, USA.
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
 


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
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



All times are GMT -4. The time now is 10:34 AM.


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