Answer Posted / prabhu.somasundaram
DDV - > Associate Single control with single variable.So
that we can define the properties for that associated variable.
DDX - > Associate Input Validation Function with Particular
variable.
for ex:
void DDV_Check(CDataExchange* dx, int DividerValue)
{
if ( DividerValue< 0)
{
AfxMessageBox("Not Valid Input for Divider");
dx->Fail();
}
}
///Calling Function
//{{AFX_DATA_MAP(CDlg)
DDV_Check(dx, m_age); // Our function
//}}AFX_DATA_MAP
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
How do you handle drag and drop in ole?
Can I uninstall visual c++ 2005?
Do I need microsoft visual c++ 2005 redistributable on my computer?
How do I uninstall visual c++?
What is cwinthread class? Explain its advantages.
How do I get rid of microsoft visual c++ runtime library error?
What is a copy constructor? What is the need for it?
What is the use of message map? Advantages of a message map.
What is microsoft visual c++ 2010 x86 redistributable?
How do I install microsoft visual c++ 2015?
How do I change visual code font?
How you build a project using Developer Studio?
Explain the advantages of cwinthread class.
What is microsoft visual c++ 2013 redistributable?
What is a microsoft visual c++ 2008 redistributable?