Microsoft KB Archive/815370

= Microsoft Visual C++ .NET Step by Step Version 2003 Comments And Corrections =

Article ID: 815370

Article Last Modified on 4/26/2007

-

APPLIES TO


 * MSPRESS Microsoft Visual C++ .NET Step by Step Version 2003, ISBN 0-7356-1907-7

-



SUMMARY
This article contains comments, corrections, and information about known errors relating to the Microsoft Press book Microsoft Visual C++ .NET Step by Step Version 2003, 0-7356-1907-7.

The following topics are covered:


 * Pages 422 & 423: Mount St.Helens Should Be Mount St. Helensr
 * Page 429: CppXmlWriter used in place of CppDom
 * Page 430: After Should Be Before
 * Page 433: Additional code needs to be added to code sample
 * Page 515: 0 used in place of 1
 * Page 525: OR Should Be AND
 * Page 539: Positional parameter referenced in place of named parameter
 * Page 546: Step 4 Should Be Step 5
 * Page 548: Error In Code Sample



Pages 422 & 423: Mount St.Helens Should Be Mount St. Helens
There are typographical errors at the bottom of page 422, and the top of 423. There is a string of text on each page missing a space.

Change:

&quot;Mount St.Helens&quot;

To:

&quot;Mount St. Helens&quot;

Page 429: CppXmlWriter used in place of CppDom
On page 429, the 4th line of the code sample in Step 4 reads:

Console::WriteLine(S&quot;Usage: CppXmlWriter path&quot;);

It should read:

Console::WriteLine(S&quot;Usage: CppDom path&quot;);

Page 430: After Should Be Before
On page 430, there is an error in the second sentence of the paragraph above Step 1 in the middle of the page.

Change:

&quot;The current XML document contains three volcano elements; what you'll do is find the second element and insert a new element after it.&quot;

To:

&quot;The current XML document contains three volcano elements; what you'll do is find the second element and insert a new element before it.&quot;

Page 433: Additional code needs to be added to code sample
On page 433, the code sample in step 8 reads:

void PrintTree {   XmlTextWriter* xtw = new XmlTextWriter(Console::Out); xtw->Formatting = Formatting::Indented;

doc->WriteTo(xtw); xtw->Flush; Console::WriteLine; }

It should read:

void PrintTree {   XmlTextWriter* xtw = new XmlTextWriter(Console::Out); xtw->Formatting = Formatting::Indented;

doc->WriteTo(xtw); xtw->Flush; xtw->Close; Console::WriteLine; }

Page 515: 0 used in place of 1
On page 515, the first sentence after the first code sample in the Casting in C++ section reads:

&quot;Dividing two integers gives an integer result, so the answer is 0, which wasn’t intended.&quot;

It should read:

&quot;Dividing two integers gives an integer result, so the answer is 1, which wasn’t intended.&quot;

Page 525: OR Should Be AND
On page 525, there is a typographical error at the bottom of the page.

Change:

&quot;Each of these represents a particular bit position within the result, and the bitwise OR operator (&) is used to check which bits are set.&quot;

To:

&quot;Each of these represents a particular bit position within the result, and the bitwise AND operator (&) is used to check which bits are set.&quot;

Page 539: Positional parameter referenced in place of named parameter
On page 539, the first line of the code sample in step 6 reads:

// Properties for the positional parameters

It should read:

// Properties for the named parameters

Page 546: Step 4 Should Be Step 5
There is a typographical error in the second sentence of Step 6 towards the bottom of Page 546. Step 4 should be Step 5.

Change:

&quot;Modify the code for the inner loop in Step 4 so that it looks like this:&quot;

To:

&quot;Modify the code for the inner loop in Step 5 so that it looks like this:&quot;

Page 548: Error in Code Sample
There is an error in the code sample on page 548. The last item &quot;{&quot; should be &quot;}&quot;.

Change:

for (int i=0; iCount; i++) { Object* pMemberAtts[] = pmi[i]->GetCustomAttributes(true); if (pMemberAtts->Count > 0) { // Do something } {

To:

for (int i=0; iCount; i++) { Object* pMemberAtts[] = pmi[i]->GetCustomAttributes(true); if (pMemberAtts->Count > 0) { // Do something } }

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.

Additional query words: 0-7356-1907-7

Keywords: kbdocerr kbdocfix KB815370

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.