BUG: Class Wizard Generates Incorrect CScrollBar Class Name

Last reviewed: July 22, 1997
Article ID: Q131990
1.50 1.51 1.52 WINDOWS kbtool kbbuglist

The information in this article applies to:

  • The Class Wizard included with: Microsoft Visual C++ for Windows, versions 1.50, 1.51, 1.52

SYMPTOMS

If Class Wizard is used to add a DDX_Control Member Variable of type pointer to CScrollBar on a dialog box or a formview, the following error message is generated when you compile the code:

   error C2501: 'CScrollbar' : missing decl-specifiers

This problem does not occur with:
  • The Class Wizard included in Visual C++ 32-bit Edition.
  • The Class Wizard installed if you install the Control Development Kit (CDK) in Visual C++ version 1.51 or 1.52. In this case, a different version of the Class Wizard DLL is installed.

CAUSE

The Class Wizard incorrectly generates the class name for CScrollBar. Instead of generating CScrollBar, it generates "CScrollbar" (note the lowercase "b" in the class name).

RESOLUTION

Manually change CScrollbar to CScrollBar after the code is generated by the Class Wizard.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional reference words: 1.50
KBCategory: kbtool kbbuglist
KBSubcategory: WizardIss
Keywords : kb16bitonly
Technology : kbMfc


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 22, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.