What is the use of DDV and DDX routines ?

Answers were Sorted based on User's Feedback



What is the use of DDV and DDX routines ?..

Answer / zerozero

DDX-Transfer the data b/w dialog control and data member.

ex: DDX_TEXT(pDX,IDC_NAME,m_strName)

DDV: Validated the data entered into dialog control varibles.
Ex: DDX_TEXT(pDX,IDC_NAME,m_strName)
DDV_TEXT(pDX,m_strName,30)

Is This Answer Correct ?    8 Yes 0 No

What is the use of DDV and DDX routines ?..

Answer / arundeva

DDX(DoDataExchange()
Is use To associate Control variable To Control ID.

DDV(DoDataValidation)
Is used to Set the range of control Value.

Is This Answer Correct ?    4 Yes 0 No

What is the use of DDV and DDX routines ?..

Answer / dharani

1)dialog data exchange (DDX)

All dialog data functions are done with C++ code. There are
no special resources or magic macros. The heart of the
mechanism is a virtual function that is overridden in every
dialog class that does dialog data exchange and validation.
It is always found in this form:

Copy Code
void CMyDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX); // call base class

//{{AFX_DATA_MAP(CMyDialog)
<data_exchange_function_call>
<data_validation_function_call>
//}}AFX_DATA_MAP
}


2)dialog data validation (DDV)


Is This Answer Correct ?    1 Yes 0 No

What is the use of DDV and DDX routines ?..

Answer / 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

More VC++ AllOther Interview Questions

Which steps are required to add a column to a list view?

2 Answers  


A file a.cpp & B.cpp are complied & linked together in VC++ file a is something like int a =100;, File B is something like extern a; main() { printf("%d",a); }what will be the output.a)100,b)linker error,c)complier error etc etc.

3 Answers   Honeywell,


What is persistence?

3 Answers  


Is visual c++ the same as c++?

0 Answers  


how i can design a user interface in vc++ for getting inputs from users

1 Answers   Path Finders, TCS,






Differences between vc 6.0 and vc 7.0

1 Answers   Honeywell,


What is cmutex?

0 Answers  


What is a transparent image?

1 Answers  


Where can I find microsoft visual c++ on my computer?

0 Answers  


What function is used to trap all mouse messages?

1 Answers  


TO start the build process in Developer Studio Which keyboard function is used ?

4 Answers  


Is microsoft visual c++ important?

0 Answers  


Categories