Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 1998-08-10
3
Medium Priority
?
1,371 Views
Last Modified: 2013-11-20
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);
}
0
Comment
Question by:cheeonn
  • 2
3 Comments
 

Author Comment

by:cheeonn
ID: 1320534
Edited text of question
0
 

Author Comment

by:cheeonn
ID: 1320535
Thanking u in advance
0
 
LVL 23

Accepted Solution

by:
chensu earned 40 total points
ID: 1320536
If the IDC_FILTERVALUE control is an edit box, you should use DDX_Text instead of DDX_Control.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month9 days, 10 hours left to enroll

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question