Microsoft KB Archive/131990

{|
 * width="100%"|

BUG: ClassWizard Generates Incorrect CScrollBar Class Name

 * }

Q131990

- The information in this article applies to: - The ClassWizard included with: - Microsoft Visual C++ for Windows, versions 1.50, 1.51, 1.52 - 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: - The ClassWizard included in Visual C++ 32-bit Edition. - The ClassWizard 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 ClassWizard DLL is installed. 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

Technology : kbVCsearch kbAudDeveloper kbClassWizard