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 vcredist?

704


What is microsoft visual c++ 2010 x86 redistributable?

635


hello sir i need movie editing and mixing software .where it is available and what is the site address

1818


What is the difference between turbo c++ and visual c++?

622


What is iunknown?

638






What is visual c++ 2008 redistributable x64?

635


Do I need microsoft visual c++?

638


Do I need the microsoft visual c++?

643


What is mfc in vc++?

787


Is microsoft visual c++ a virus?

755


What is vcruntime?

677


What is a thread (VC++) and state the difference between Cmutex and Csemaphone?

684


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

750


difference between assert and verify.

662


How do I get rid of microsoft visual c++ runtime library error?

758