FIX: CRecordset Members Not in "Add Member Variable" Dialog BoxLast reviewed: December 18, 1997Article ID: Q167423 |
The information in this article applies to:
SYMPTOMSThis problem only occurs in the German localized version of Visual C++ 5.0. When you have Ctrl+DblClk on a dialog box or "Add Member Variable" in Class Wizard, the member variables in the CRecordset class are not displayed.
CAUSEThe Class Wizard fails to translate the strings.
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been corrected in Visual Studio 97 Service Pack 1. For additional information about the Visual Studio 97 Service Pack 1, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q170365 TITLE : INFO: Visual Studio 97 Service Packs - What, Where, and Why MORE INFORMATION
Steps to Reproduce Behavior
Steps to Work Around this ProblemIf you need to connect a field to the EditBox, you have to manually add code to the CTestView::DoDataExchange() function. For example, if you want to connect to the EditBox to the:
m_pSet->m_StudentIDvariable, add the following line to void:
void CTestView::DoDataExchange(CDataExchange* pDX)which is located in the TextView.cpp file as follows:
DDX_FieldText(pDX, IDC_EDIT1, m_pSet->m_StudentID, m_pSet);The result should look like the following:
void CTestView::DoDataExchange(CDataExchange* pDX) { CRecordView::DoDataExchange(pDX); //{{AFX_DATA_MAP(CDbtestView) DDX_FieldText(pDX, IDC_EDIT1, m_pSet->m_StudentID, m_pSet); //}}AFX_DATA_MAP } Keywords : MfcDatabase vcbuglist500 WizardIss VS97FixlistSP3 kbtool VS97FixlistSP2 VS97FixlistSP1 Version : 5.0 Platform : NT WINDOWS Issue type : kbbug Solution Type : kbfix kbservicepack |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |