ID: Q131990
The information in this article applies to:
- Microsoft Visual C++ for Windows, versions 1.50, 1.51, 1.52
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:
The ClassWizard incorrectly generates the class name for CScrollBar. Instead of generating CScrollBar, it generates "CScrollbar" (note the lowercase "b" in the class name).
Manually change CScrollbar to CScrollBar after the code is generated by the Class Wizard.
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