ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Programming Languages  >>  VC++  >>  VC++ AllOther
 
 


 

 
 MFC interview questions  MFC Interview Questions
 ATL interview questions  ATL Interview Questions
 COM DCOM interview questions  COM DCOM Interview Questions
 Win32API interview questions  Win32API Interview Questions
 ActiveX interview questions  ActiveX Interview Questions
 VC++ AllOther interview questions  VC++ AllOther Interview Questions
Question
What is the use of DDV and DDX routines ?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the use of DDV and DDX routines ?
Answer
# 1
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
Dharani
 
  Re: What is the use of DDV and DDX routines ?
Answer
# 2
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 ?    0 Yes 0 No
Arundeva
 
 
 
  Re: What is the use of DDV and DDX routines ?
Answer
# 3
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 ?    1 Yes 0 No
Prabhu.somasundaram
 

 
 
 
Other VC++ AllOther Interview Questions
 
  Question Asked @ Answers
 
Name the three attributes of a pen?  1
What is the return value when the InsertItem function fails?  1
Which steps are required to add a column to a list view?  1
What Is Your Greatest Weakness? Servion2
Name the three types of loops used in C++ programs?  1
What is persistence?  2
What is type-safety?  1
How can we allow no selection of radio button in grouped radio buttons?  2
What is the difference between the cout and cin iostream objects?  1
how i can design a user interface in vc++ for getting inputs from users Path-Finders1
TO start the build process in Developer Studio Which keyboard function is used ?  2
Name the most commonly used wizards?  1
What is the difference between the = and == operators?  1
what are the advantages of VC++ design environment  1
What is the difference between pointer and reference?  3
What is a glyph?  2
What is more efficient to pass as a parameter--a pointer or an object? Why?  1
How do you specify which control is the buddy control?  2
What is a transparent image?  1
What is the file extension used for C++ class implementation files?  3
 
For more VC++ AllOther Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com