BUG: ClassWizard Generates Incorrect CScrollBar Class Name

ID: Q131990

The information in this article applies to:

SYMPTOMS

If ClassWizard 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:

CAUSE

The ClassWizard 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.

Additional query words:

Keywords          : kberrmsg kb16bitonly kbwizard kbMFC kbVC150bug kbVC151bug kbVC152bug kbGrpDSTools 
Issue type        : kbbug

Last Reviewed: October 16, 1998