Kruglinski's "Inside Visual C++" ErrataID: Q117566
|
There are many differences between the source code provided in the Microsoft Press book "Inside Visual C++" by David J. Kruglinski and the source code on the disk that ships with the book. The book contains other errors that are described below.
void CEx06aDialog::OnOK();
to
virtual void OnOK();
In the CEx06aDialog::OnHScroll function in the book, the three occurrences of the line "pScrollBar->GetScrollRange(&nMin, &nMax)" in the switch statement are not in the source code found on the sample disk. The line "pScrollBar->GetScrollRange(&nMin,&nMax)" is needed at the beginning of each one of the case statements to set the minimum and maximum values of the scroll bar before the thumbpad position can be changed.
int CEx12bView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if(CEditView::OnCreate(lpCreateStruct) != 0)
{
return -1;
}
VERIFY(m_pFont->CreateFont(12,0,0,0,400,FALSE,FALSE,0,
ANSI_CHARSET,OUT_DEFAULT_PRECIS,
CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,
DEFAULT_PITCH | FF_SWISS,"Arial"));
SetFont(m_pFont);
return 0;
}
The same function on the sample disk has three major differences:Additional query words: kbinf 1.00
Keywords : kb16bitonly
Version :
Platform :
Issue type :
Last Reviewed: July 26, 1999