Solved

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

Posted on 1998-08-10
3
1,323 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 20 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

930 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now