Wrox Home  
Search titles for:

Topic: C# and C++

Cover image for product 0470225904
Ivor Horton's Beginning Visual C++ 2008
Ivor Horton
ISBN: 978-0-470-22590-5
Paperback
1392 pages
March 2008
Paperback Version: US $54.99 Add to Cart

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
3 Error in Text
"because data and code is managed"

should be:

"because data and code are managed"
06/16/2008
47 Typo
represents a working program at it stands.

should be:
represents a working program as it stands.
08/25/08
21 Error in Text
"After you have entered the project name... click Applications Settings on the right side"

should be

"After you have entered the project name... click Applications Settings on the left side (right below Overview)"

11/13/08
55 Missing word
first paragraph under the heading "The Boolean Type":
"Boolean variables are variables can have only..."

should be:
"Boolean variables are variables that can have only..."
04/05/08
64 Typo
last line:
here

should be:
hear
09/02/08
86 Missing word
next to last paragraph under the heading "Understanding Storage Duration and Scope", 3rd sentence reads:
"either to set its value or to it in an expression."

should be:
"either to set its value or to use it in an expression."
04/05/08
96 Error in Text
the paragraph above the last block of grey highlighted information on the page, in the 3rd or next to last sentence, it reads:
"deliberately, but in can arise..." Should be: "deliberately, but it can arise..."
04/05/08
213 Error in Code
code listing:
for (int i = 0 ; i < sample->Length ; i++)

should be:
for (int i = 0 ; i < samples->Length ; i++)
08/04/08
263 Error in Text
In section "Returning a Pointer", the line above the code block:

"Our first attempt the implement such a function..."

should be:

"Our first attempt to implement such a function..."
07/16/2008
366 Error in Text
Section Title: The Pointer this; 2nd paragraph:

Volume() function during execution, it's actually referring to this>m_Len

Should be:
Volume() function during execution, it's actually referring to this->m_Len
07/17/08
474 Error in Code
In Ex8_09.cpp

The problem is with the listnames function. In the book it appears as this:

void listnames(string names[], string ages[], size_t count)
{
size_t i = 0;
cout << endl << "The names you entered are: " << endl;
while(i<count && !names[i].empty())
cout << names[i] + " aged " + ages[i++] + '.' << endl;
}

The suggested correction that works is the following:

void listnames(string names[], string ages[], size_t count)
{
size_t i = 0;
cout << endl << "The names you entered are: " << endl;
while(i<count && !names[i].empty()){
cout << names[i] + " aged " + ages[i] + '.' << endl;
i++;
}
}
06/17/2008
560 Error in Text
"first you create an array of handles to strings"

should be:

"first you create an array of handles to boxes"
07/06/2008
13 789 Error in Figure 13-7
Figure 13-7 references an SDI application which does not need a child frame. Please see the downloads for this chapter to download the corrected figure.
07/21/08
817 Typo
just below the subtitle "Creating Menu Message Functions":
Highlight the CSketchDoc Class

should be:

Highlight the CSketcherDoc Class
10/03/08
836 Error in Text
at the top left of the control

Should be:
at the top right of the control
10/03/08
864 Error in Text
the last mouse message:

WM_MOUSEMOVE | Message occurs when the button is moved

should be:
WM_MOUSEMOVE | Message occurs when the mouse is moved
07/23/08
968 Missing Code
the Curve class Draw() function is missing some required things in order to draw a curve correctly. Only the book is missing the code. The book reads:

virtual void Draw(Graphics^ g) override
{
Point previous = Point(0, 0);
for each(Point p in points)
{
g->DrawLine(pen, previous, p);
previous = p;
}
}

this code works, but the curve is drawn starting off screen because the code to translate the coordinates is missing. The book should read:

virtual void Draw(Graphics^ g) override
{
g->TranslateTransform(safe_cast(position.X), safe_cast<float>(position.Y));
Point previous = Point(0, 0);
for each(Point p in points)
{
g->DrawLine(pen, previous, p);
previous = p;
}
g->ResetTransform();
}
07/23/08
1037 Error in Book Code
The downloadable code and the book differ here; the book version of the The penWidthButton_Click function is incorrect.

the book code for the penWidthButton_Click function should read:

private: System::Void penWidthButton_Click(System::Object^ sender, System::EventArgs^ e)
{
if(penDialog->ShowDialog() == System::Windows::Forms::DialogResult::OK)
{
penWidthComboBox->SelectedIndex = safe_cast<int>(penDialog->PenWidth - 1.0f);
penWidthComboBox->Invalidate();
}
}
07/25/08
1063 Typos
midpage, in the second marked code snippet:
typid

should be:
typeid ()

AND

typinfo

should be:
typeinfo

AND

for RTTI to work correctly:
typeid(m_pSelected)

should be:
typeid(*m_pSelected)
09/07/08
Get More Wrox For Less!

C#/C++ Resources