Solved

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

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows Drag & Drop Location 2 108
Strange date stored 22 156
Separate files macro - Errors on larger data set 18 73
Problem to event 3 104
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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. …
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

820 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