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

Explain pointer to the constant and constant pointer?

504


How do I install microsoft visual c++ 2015?

537


What is vcredist?

629


What is microsoft visual c++ used for?

559


Explain the advantages of cwinthread class.

596






What is visual c++ runtime error?

594


How do I uninstall vc++ 2015?

512


What is odbc in vc ++?

631


Do you need microsoft visual c++?

608


What is vc++ programming?

684


What is iunknown? Explain some of commonly used methods provided by iunknown.

605


What is vcredist_x86 exe?

606


How do I reinstall visual c++ on windows 10?

547


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

609


How do you handle drag and drop in ole?

593