What is the use of DDV and DDX routines ?

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


Please Help Members By Posting Answers For Below Questions

What is mfc in vc++?

723


How do I remove microsoft visual c++ 2015 redistributable?

588


Is visual c++ a compiler?

558


Explain the significance of initapplication() in vc++.

656


What is microsoft visual c++ 2008 redistributable and do I need it?

548






What is visual c++ runtime error?

604


Do I need microsoft visual c++ 2005 redistributable on my computer?

656


What is visual c++ redistributable?

588


Is microsoft visual c++ a virus?

662


Is it ok to uninstall microsoft visual c++?

596


What is dao in vc ++?

547


What is vcredist?

635


How can we use cmutex?

565


What is microsoft visual c++ 2005 redistributable?

587


Explain the important features of vc++?

606