parameter conversion(CString ti CWnd&) for DDX control...

What is wrong with this code here...I can't seem to be able to compile the program...
error C2664: 'DDX_Control' : cannot convert parameter 3 from 'class CString' to 'class CWnd &'





void CFilterDlg::DoDataExchange(CDataExchange* pDX)
{
      CDialog::DoDataExchange(pDX);
      //{{AFX_DATA_MAP(CFilterDlg)
      //}}AFX_DATA_MAP
      DDX_Control(pDX, IDC_FILTERVALUE, m_filterValue);
}
cheeonnAsked:
Who is Participating?
 
chensuConnect With a Mentor Commented:
If the IDC_FILTERVALUE control is an edit box, you should use DDX_Text instead of DDX_Control.
0
 
cheeonnAuthor Commented:
Edited text of question
0
 
cheeonnAuthor Commented:
Thanking u in advance
0
All Courses

From novice to tech pro — start learning today.