PRB: ClassWizard Links Only Types with DDX Support (116491)
The information in this article applies to:
- The ClassWizard, when used with:
- Microsoft Visual C++ 1.51
- Microsoft Visual C++ 1.52
- Microsoft Visual C++, 32-bit Editions 2.0
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
This article was previously published under Q116491 SYMPTOMS
By default, ClassWizard allows linking the edit controls of combo boxes
only to member variables that are of type CString.
MORE INFORMATION
By design, ClassWizard allows links only to types for which dynamic data
exchange (DDX) routines have been provided. Microsoft Foundation Classes
(MFC) provides a DDX_FieldCBString() function to manage data transfer
between the edit control of a combo box and a CString member variable, but
not between combo boxes and other types (for example, there is no
DDX_FieldCBInt). This is not a problem with ClassWizard; it is simply a
matter of providing support for those DDX routines that are available.
If a particular routine that you would find useful does not already exist,
you can create a custom routine. "MFC Technical Note #26" provides
instructions on how to create custom DDX/DDV routines. Once a custom
routine is provided, ClassWizard recognizes the type and allows the mapping
to be made. This additional functionality may be useful when linking the
edit controls of combo boxes to non-CString fields, such as those found in
a database.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | kbprb kbwizard KB116491 |
---|
|