Errata
The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".
The following errata were submitted by our customers and approved as valid errors by the author or editor.
Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted By | Date submitted | Date corrected |
---|---|---|---|---|---|
Printed | Page CD-ROM |
New ImageIO.cs And MetafileConvert.cs Files |
Microsoft Press | Jul 13, 2010 | |
Printed | Page 14 |
Correction To AddFive Routine |
Microsoft Press | Jul 13, 2010 | |
Printed | Page 56 |
Missing ")" In Code Sample |
Microsoft Press | Jul 13, 2010 | |
Printed | Page 203 |
Incorrect Chapter Cross-Reference In First Paragraph Of |
Microsoft Press | Jul 13, 2010 | |
Printed | Page 252 and 253 |
Incorrect Hebrew Character Leading To Misspelling Of "Boker" |
Microsoft Press | Jul 13, 2010 | |
Printed | Page 298 |
OnPage Should Be DoPage |
Microsoft Press | Jul 13, 2010 | |
Printed | Page 403 |
Two Incorrect Values In TestRenderingHint Enumeration |
Microsoft Press | Jul 13, 2010 | |
Printed | Page 472 |
Error In Code Sample |
Microsoft Press | Jul 13, 2010 | |
Printed | Page 489 |
Incorrect URL |
Microsoft Press | Jul 13, 2010 | |
Printed | Page 770 |
Single Class Should Be Single Structure |
Microsoft Press | Jul 13, 2010 | |
Printed | Page 1112 and 1113 |
Correction to MetafileConvert.cs Code |
Microsoft Press | Jul 13, 2010 | |
Printed | Page 4 |
Creating An Empty Project Only Valid For Visual Studio.Net |
Microsoft Press | May 06, 2010 | |
Printed | Page 12 |
Typographical Error There is a typographical error on page 12 in the second-to-the-last paragraph. Change: "Date types don't need..." To: "Data types don't need..." |
Microsoft Press | May 06, 2010 | |
Printed | Page 45 |
Int16 Should Be Int32 There are two incorrect references to Int16 in the middle of page 45. Change: "is an alias for the Int16 structure." To: "is an alias for the Int32 structure." Also change: "System.Int16 a = 55;" To: "System.Int32 a = 55;" |
Microsoft Press | May 06, 2010 | |
Printed | Page 116 & 118 |
SystemColor Should Be SystemColors There is an error in the code samples on page 116 and 118. The four instances total of "SystemColor" on pages 116 and 118 should be changed to "SystemColors". |
Microsoft Press | May 06, 2010 | |
Printed | Page 244 |
Incorrect Capitalization In Code Sample The beginning of the Caret class towards the bottom of Page 244 contains five instances of the following program instruction: [DLLImport("user32.dll")] When the reader attempts to compile the Caret.cs file, the following error message is thrown: ...Caret.cs(13): The type or namespace name 'DLLImport' could not be found (are you missing a using directive or an assembly reference?) The reason the compiler generated this error is because the two letter "L's" in the word "DLLImport" are capitalized. (Please note an example of the proper way to write this statement can be found on the sixth line of Page 239.) Error Solution: Change the two upper case letter "L's" to lower case letter "l's." Correction: The beginning of the Caret class towards the bottom of Page 244 should contain five instances of the following program instruction: [DllImport("user32.dll")] |
Microsoft Press | May 06, 2010 | |
Printed | Page 289 |
Incorrect Square Roots Within Graphic At Top Of Page On page 289, in the graphic (G07PL09) on the top of page 289, all instances (8) showing the square root of 2 should instead show the square root of 1/2. |
Microsoft Press | May 06, 2010 | |
Printed | Page 382 |
Remove Extra Space From Code
The seventh line from the end of the AllAboutFont.cs program located on Page 382 states:
"GdiVerticalFont : " + Font.GdiVerticalFont + " |
Microsoft Press | May 06, 2010 | |
Printed | Page 416 |
How the DrawString Should Be How does the Drawstring There is a typographical error in the middle of page 416. Change: "How the DrawString call interprets ampersands?" To: "How does the DrawString call interpret ampersands?" |
Microsoft Press | May 06, 2010 | |
Printed | Page 484 |
Out-of-date Info In Paragraph On page 484, in the section titled"Bitmap File Formats",Change: "Exif The Exchangeable image format was developed by the organization now known as Japan Electronic Industry Development Association (JEIDA) for use in digital cameras. The specification is published on the Web site of the International Imaging Industry Association (I3A), formerly the Photographic and Imaging Association, Inc. (PIMA) at http://www.pima.net/standards/it10/PIMA15740/Exif_2-1.PDF."To:"Exif The Exchangeable image format was developed by the organization now known as Japan Electronics and Information Technology Industries Association (JEITA) for use in digital cameras. The specification for EXIF 2.2 can be found here: http://www.exif.org/Exif2-2.PDF. " |
Microsoft Press | May 06, 2010 | |
Printed | Page 515 |
Correction To Save Method On page 515, in first paragraph under "More on the Image Class", remove: "The first version of Save in the following list uses the filename extension to determine the file Format, but you can be more explicit in the next two versions: ... void Save(string strFilename)" |
Microsoft Press | May 06, 2010 | |
Printed | Page 779 and 780 |
Correction To ImageIO.cs Code On pages 779 and 780, replace the ImageIO.cs code with the following: //-------------------------------------- // ImageIO.cs (c) 2001 by Charles Petzold //-------------------------------------- using System; using System.Drawing; using System.Drawing.Imaging; using System.IO; using System.Windows.Forms; class ImageIO: ImageOpen { MenuItem miSaveAs; public new static void Main() { Application.Run(new ImageIO()); } public ImageIO() { Text = strProgName = "Image I/O"; Menu.MenuItems[0].Popup += new EventHandler(MenuFileOnPopup); miSaveAs = new MenuItem("Save &As..."); miSaveAs.Click += new EventHandler(MenuFileSaveAsOnClick); Menu.MenuItems[0].MenuItems.Add(miSaveAs); } void MenuFileOnPopup(object obj, EventArgs ea) { miSaveAs.Enabled = (image != null); } void MenuFileSaveAsOnClick(object obj, EventArgs ea) { SaveFileDialog savedlg = new SaveFileDialog(); savedlg.InitialDirectory = Path.GetDirectoryName(strFileName); savedlg.FileName = Path.GetFileNameWithoutExtension(strFileName); savedlg.AddExtension = true; savedlg.Filter = "Windows Bitmap (*.bmp)|*.bmp|" + "Graphics Interchange Format (*.gif)|*.gif|" + "JPEG File Interchange Format (*.jpg)|" + "*.jpg;*.jpeg;*.jfif|" + "Portable Network Graphics (*.png)|*.png|" + "Tagged Imaged File Format (*.tif)|*.tif;*.tiff"; ImageFormat[] aif = { ImageFormat.Bmp, ImageFormat.Gif, ImageFormat.Jpeg, ImageFormat.Png, ImageFormat.Tiff }; if (savedlg.ShowDialog() == DialogResult.OK) { try { image.Save(savedlg.FileName, aif[savedlg.FilterIndex - 1]); } catch (Exception exc) { MessageBox.Show(exc.Message, Text); return; } strFileName = savedlg.FileName; Text = strProgName + " - " + Path.GetFileName(strFileName); } } } |
Microsoft Press | May 06, 2010 | |
Printed | Page 1118 |
Filename Is Stored As String There is an incorrect statement at the bottom of page 1118. Change: "Instead, the filename is stored as a file and the..." To: "Instead, the filename is stored as a string and the..."Microsoft Press is committed to providing informative and accurate books. All comments and corrections listed above are ready for inclusion in future printings of this book. If you have a later printing of this book, it may already contain most or all of the above corrections. |
Microsoft Press | May 06, 2010 |