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?

Improve company productivity with a Business Account.Sign Up

x
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.