Wiley.com
Print this page Share

Beginning Visual C#® 2005

ISBN: 978-0-7645-7847-2
Paperback
1104 pages
November 2005
Beginning Visual C#® 2005 (0764578472) cover image
This title is out-of-print and not currently available for purchase from this site.

Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.

ChapterPageDetailsDatePrint Run
42 on Website PDF Code Error in Exercise Answers.pdf on website
Page 42 of the 578472_Exercise Answers.pdf (available for download on the website)

...
if (dlgPrint.PrinterSettings.SupportsColor)
printBrush = new SolidBrush(textBoxEdit.ForeColor);
else
printBrush = Brushes.Black;
}

should be:

...
if (dlgPrint.PrinterSettings.SupportsColor)
printBrush = new SolidBrush(textBoxEdit.ForeColor);
else
printBrush = Brushes.Black;
printBrush.Dispose();
}
3/20/06
Code Replacement
The content for this title has been posted and may be accessed via:
http://www.wrox.com/WileyCDA/WroxTitle/productCd-0764578472,descCd-download_code.html
04/06/2006
xxxviii Typo in Text
2nd paragraph in Errata section: "link to each's book's errata" should read "link to each book's errata"
5/28/09
3 2 Error in Exercise Answer
In Exercise 4, the solution reads:
"The * and / operators have the highest precedence here, followed by +, <<, and finally +=. The precedence in the exercise can be illustrated using parentheses as follows: resultVar += (((var1 * var2) + var3) << (var4 / var5));"

Should read:
"The *, % and / operators have the highest precedence here, followed by + and +=. The precedence in the exercise can be illustrated using parentheses as follows: resultVar += ((var1 * var2) + ((var3 % var4) / var5));"
03/31/2006
20 Error in Command Prompt
On page 20, it indicates to run from the command prompt type reads:

C:\BegVCSharp\Chapter2\ConsoleApplication1\bin\Debug then type ConsoleApplication1.

However, since a directory was created when we set the settings back to default and kept the checkbox selected for creating a directory for the solution the text should read:

C:\BegVCSharp\ConsoleApplication1\ConsoleApplication1\bin\Debug to be in the correct directory as the executable.
11/03/06
31 Typo in Text
First paragraph on the page:

tweak the settings to sort your personal style

Should be

tweak the settings to suit your personal style
6/9/09
44 Error in Text/Code
On page 44 it is stated that the conditional operator is a logical one, in that it returns a Boolean value.

This is wrong. It returns the value of the second or third operand.

Example: (a>b)?5:9 doesn’t return a Boolean value.
05/04/2006
66 Error in Text/Code
On page 66 is stated that the unary suffix increment en decrement (i++ and i--) operators have lowest precedence. The language specification states that the unary suffix operator is placed in the Primary category, thus takes highest precedence.

Example: statement a=b++; would be equivalent to the syntactically wrong statement (a=b)++; if the suffix operator had lowest precedence.
05/04/2006
6 131 Error in Text
Chapter 6, page 131:
text reads:
"Calling showDouble() with myNumber....",

should read:
"Calling ShowDouble() with myNumber.....". Camel Casing was used instead of Pascal Casing
11/03/06
149 Error in Text
Reference to Chapter 12 should be Chapter 13.
07/31/2007
188 Typo in Diagram
in UML diagram:
StaticPorperty

should read:
StaticProperty
11/06/07
190 Error in Text
In the second to last paragraph it reads:

"Alternatively, you an instantiate the object as part of the using statement:"

This sentence should read:

"Alternatively, you can instantiate the object as part of the using statement:"
07/30/2007
215 Error in Text/Code
On page 215 is stated:
“If you use a nondefault constructor of a class, then the default behavior is to use a constructor on the base class that matches the signature of this constructor”.
An example of this statement is given on page 215 and 216.

On page 216 is stated:
MyDerivedClass myObj = new MyDerivedClass(4);

Here, the sequence will be:
• The System.Object.Object() constructor will execute
correctly
• The MyBaseClass.MyBaseClass(int i) will execute !!
incorrectly
• The MyDerivedClass.MyDerivedClass(int i) wil execute
correctly

The language specification states:
If an instance constructor has no constructor initializer, a constructor initializer of the form base() is implicitly provided. [Note: Thus, an instance constructor declaration of the form C(…) {…} is exactly equivalent to C(…): base() {…} end note]

Thus, the default base class constructor is always implicitly provided if no constructor initializer is given.
05/04/2006
262 Error in Screenshot
Screenshot on page 262 - the entry for Ace should have a Value entry of 1, making the definition of the Rank enumeration as follows:

namespace Ch10CardLib
{
public enum Rank
{
Ace = 1,
Deuce,
Three,
Four,
Five,
Six,
Seven,
Eight,
Nine,
Ten,
Jack,
Queen,
King,
}
}

With this definition (which is as the code is in the downloadable version) the code on 265 is as it should be. The advantage of doing things this was round is spelled out in the note under Figure 10-12.
3/9/06
289 Error in Code
if (min < 2)
{
min = 2;
}
min = minimum;
max = maximum;

Should be:

min = minimum;
max = maximum;
if (min < 2)
{
min = 2;
}
07/31/2007
13 364 Error in Text
Chapter 13, Page 364, second line in the second paragraph:

text reads:
MyRootNamespace.MyNestedAlias

should be read as:
MyRootNamespace.MyNestedNameSpace


AND


Chapter 13, Page 364, second line of the fourth paragraph:

text reads:
MyRootNamespace.MyNestedAlias.MyClass

should be read as:
MyRootNamespace.MyNestedNameSpace.MyClass
11/06/06
405 Error in Text / Screenshot
Typo in screenshot, figure 14-10:

First text box reads:
"testBoxName"

Should read:
"textBoxName"
11/06/06
483 Code error
7th last line:

txtLabelText.Width = this.Right - mTextboxMargin;
should be:
txtLabelText.Width = this.Width - mTextboxMargin;
3/20/06
489 Error in bulleted list
fourth bullet text:

....Net 2.0
should be:
....Net 1.1
3/20/06
534 Code Error
Highlited code:

Brush brush = new SolidBrush(textBoxEdit.ForeColor);
should be:
Brush printBrush = new SolidBrush(textBoxEdit.ForeColor);
3/20/06
592-93 Errors in Code/Text
The section that refers to defining a new class called "RegistrationInformation" reads "3. Implement the struct RegistrationInformation in the file RegistrationInformation.cs as shown:"

The first line of the code reads:
public struct RegistrationInformation.

The first line should read:
public class RegistrationInformation


AND


In Step 3 under "try it out" the text should read:
"Implement the class RegistrationInformation in the file RegistrationInformation.cs as shown:"
05/11/2006
626 Error in Code
code reads:
if (Request.UserAgent.Contains("MSIE")

should read:
if (Request.UserAgent.Contains("MSIE"))

Note: closing bracket is missing
12/13/06
690 Error in Text
paragraph after point 7 reads:
Selecting the button Synchronise selected files that shows errors in both directions.

should read:
Selecting the button Synchronise selected files that shows arrows in both directions
12/12/06
691 Typo
point 5:
You will find ASXP files

should read:
You will find ASPX files
12/12/06
725 Error in Text
1000 times

should be:

100 times
07/31/2007
736 Error in Code
code reads:
DirectoryInfo aDir = new DirectoryInfo(@"C:\\FileLogs");

should read:
DirectoryInfo aDir = new DirectoryInfo(@"C:\FileLogs");

only 1 backslash needed since @ prefixes the string
12/20/2007
751 Error in Figure
Figure 23-4 Column story_Id in Figure is not there if you follow the exercise.

this will be retaken in next edition.

the value 3 in the 2nd row 3rd column should not be displayed.
07/31/2007
908 Error in Text
Reference to Chapter 22 should be Chapter 27.
07/31/2007
973 Step 4
Step 4: Also import System.IO
07/31/2007
Back to Top