Errata

Visual Basic 2005 Jumpstart

Errata for Visual Basic 2005 Jumpstart

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Printed Page 1-12
Throughout

There are a huge number of problems in this section of the book. I wrote to Jay Roxe
last week, outlining some of them -- both editorial problems, and technical errors.
The bottom line is that anybody who just tries to follow your instructions is bound
to wind up very frustrated before they ever get through Chapter 1.

The overall content of this book is excellent, and it's a real shame that it's
spoiled by a single bad chapter.

Anonymous   
Printed Page 1
n/a

Team:

Because this book is old but useful, there is a workaround for the DB. Use Access locally if you don't have SqlSvr2005. Most of the examples will work.

maniac  Apr 19, 2011 
4.1.3
Amazon Web Service

Amazon now requires a signature to make the call to the web service. Since people reading this book are like me and don't know how to do that stuff, I am now stuck at the end of 4.1. I can not continue on to finish the windows project and learn the rest of the information. The rest depends on the information return in the web service call which does not work.

Please include the signature code in the exmpale projects available for download in conjunction with this book with a readme file if needed.

Cheri Fitzwater  Sep 04, 2009 
Printed Page 12
Example 1-1

Example 1-1 is supposed to show the auto-generated code for the binding navigator
Save Item Tool for the Event Click.

However, when I doubleclick on the save item tool to see this code in VS 2005, I see
the following code (which differs from the code in the text in example 1-1 in some
important ways).

Private Sub AuthorsBindingNavigatorSaveItem_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles AuthorsBindingNavigatorSaveItem.Click
Me.Validate()
Me.AuthorsBindingSource.EndEdit()
Me.AuthorsTableAdapter.Update(Me.PubsDataSet.authors)

End Sub

Anonymous   
Printed Page 27
Example 1-5 Saving control location data when a user exits or closes Form1

My.Settings.MenuLocation = MenuStrip1.Location

Should be:

My.Settings.MenuStripLocation = MenuStrip1.Location

[Chapter 4] Throughout;
Amazon has re-vamped their API, so that the LibraryApp no longer compiles.

See the following thread:

http://developer.amazonwebservices.com/connect/thread.jspa?messageID=40364&tstart=0

I adjusted the reference file, per the instructions given, and also made some other
changes (before I found this thread). However, there's an alternative link, in that
thread, which supposedly downloads the older version of the interface. That's
probably your best bet for a correction.

Anonymous   
Printed Page 98
bottom line

The last sentence said retrieved book information can be saved for offline viewing.
Trying the sample code shows that Add Title/Auto-Add Title cannot add new information
to library.mdf.

Anonymous   
Printed Page 99
Entire chapter

After following the direction in the book, to the letter, it does not function as
advertised. I decided to download the code from this site and it does not work
either.

Is there some sort of an update to this book?

Anonymous   
Printed Page 102
Figure 4-6

ProgressBar control is displayed in Figure 4-6, however previous steps did not require it to be added, nor does it seem to get used throughout the exercise/example.

Anonymous   
Printed Page 107
figure 4-14

Team:

hint > drop table, then change label

maniac  Apr 19, 2011 
Printed Page 111
Amazon web reference

Team:

AWS & UDDI obsolete

maniac  Apr 19, 2011 
Printed Page 117
after "'---download the cover image"

The book provides this code:

Dim webReq As Net.HttpWebRequest = _
Net.HttpWebRequest.Create(.MediumImage.URL.ToString)

Dim webResp As Net.HttpWebResponse = webReq.GetResponse()

But if you have Option Strict On, it won't compile; you have to cast the types like
this:

Dim webReq As Net.HttpWebRequest = _
CType(Net.HttpWebRequest.Create(.MediumImage.URL.ToString), _
Net.HttpWebRequest)

Dim webResp As Net.HttpWebResponse = _
CType(webReq.GetResponse(), Net.HttpWebResponse)

Anonymous   
Printed Page 119
Code Fragment Addtitle

Titles are not being saved after restarting the app.

Anonymous   
Printed Page 122
figure 4-27

Team:

hint > form view

maniac  Apr 19, 2011 
Printed Page 124
last paragraph

"To save changes to the database, you need to click the Save Data button ..."

The code behind the Save Data button seems to be correct but the data is not saved to
the database. When I close the Library program and then run it again the
Datagridview is empty -- the data has not been saved.

Anonymous   
Printed Page 140
Item 4 at bottom (and screenshot on following page)

In my copy of VS 2005, instead of having an "Add Folder"->Regular Folder choice, I
had to choose "New Folder" instead (I haven't completed the project, but I believe
that will work.)

Anonymous   
Printed Page 152
figure 5-4

Team:

Dim ISBN as String = ""
warning when debug if no value

maniac  Apr 19, 2011 
Printed Page 154
154 to 189 missing

Weird problem. Print date September 2005. Bought from Amazon. Binding looks intact
but the book stops at page 154. Can you help?
ISBN 0-596-10071-X and UPC# 9 780596 100711 6

Anonymous   
Printed Page 164
figure 5-4

Team:

When you get to checkout.aspx, the master images don't show up.
Add <%= Page.ResolveUrl("~")%> before image src.

<img alt="logo" id="imgLogo" src="<%= Page.ResolveUrl("~")%>images/oreilly_logo.gif" />

<img alt = "header" id="imgHeader" src="<%= Page.ResolveUrl("~")%>images/oreilly_header.gif" /><br />

maniac  Apr 19, 2011 
Printed Page 164
figure 5-25

Team:

When you get to checkout.aspx, the master images don't show up.
Add <%= Page.ResolveUrl("~")%> before image src.

<img alt="logo" id="imgLogo" src="<%= Page.ResolveUrl("~")%>images/oreilly_logo.gif" />

<img alt = "header" id="imgHeader" src="<%= Page.ResolveUrl("~")%>images/oreilly_header.gif" /><br />

maniac  Apr 19, 2011 
Printed Page 164
figure 5-25

Team:

I wasn't able to figure this one out, but I understand what's occurring.

Dim masterImage As Image
masterImage = CType(Page.Master.FindControl("imgHeader"), Image)
MsgBox(Page.Master.FindControl("imgHeader"))
If masterImage IsNot Nothing Then


The next line never fires as never true; therefore, image never changes. If change condition, then NullReferenceException because code is looking for image in wrong container.

masterImage.ImageUrl = "~/images/header_shopping.gif"


End If

maniac  Apr 19, 2011