Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the use of CObject::Dump function ?

Answers were Sorted based on User's Feedback



What is the use of CObject::Dump function ? ..

Answer / preeja

Dumps the contents of your object.When you write your own
class, you should override the Dump function to provide
diagnostic services for yourself and other users of your
class. The overridden Dump usually calls the Dump function
of its base class before printing data members unique to
the derived class.
Dump function should not print a newline character at the
end of its output.Dump is a const function, you are not
permitted to change the object state during the dump.
// example for CObject::Dump
void CAge::Dump( CDumpContext &dc ) const
{
CObject::Dump( dc );
dc << "Age = " << m_years;
}

Is This Answer Correct ?    6 Yes 1 No

What is the use of CObject::Dump function ? ..

Answer / sonali d

Dump function is used for diagnostic testing

Is This Answer Correct ?    4 Yes 2 No

What is the use of CObject::Dump function ? ..

Answer / satyabrata mishra

for Error handling purposes.

Is This Answer Correct ?    0 Yes 6 No

What is the use of CObject::Dump function ? ..

Answer / abhijit

* intended to produce shallow snapshot
* should dump information about its members that are not
inherited
* can set depth detail through SetDepth()
* by default, information is dumped on trace window.
however, this may be altered in InitInstance():
afxDump.m_pFile = pFile;
cleanup code in ExitInstance():
afxDump.Flush();
afxDump.Close();
delete afxDump.m_pFile;
afxDump.m_pFile = NULL;

Is This Answer Correct ?    0 Yes 6 No

Post New Answer

More MFC Interview Questions

How WM_PAINT message gets called in MFC,please explain it . a)Who calls the WM_PAINT message? b)When it gets called? c)how it comes to message queue? Please Explain it

8 Answers  


What is CALLBACK? How it work? what is the advantage of CALLBACK, please explain with an example

6 Answers  


Why not virtual functions to handle messages?

5 Answers  


Types of DLL's

11 Answers   Invensys,


What is #progma and where it is used?

5 Answers   L&T,


1)How to change a text of a button as Dynamically?

1 Answers   HCL,


how does the UIThread and worker thread communicates and handle events

2 Answers   HCL,


Hi All, I have created one MFC Dialog Based application.now if i am running the application its working fine,instead of closing he application i minimized the application,if i run the application again,i am getting the Dialog. I want to prevent the calling of application multiple times. please give me the code and let me know in which method i need to make changes. Praveer

7 Answers   HP,


if i modified data in 1 view how does the other view knows

2 Answers   Siemens,


In VC++ How to transfer between one exe to another exe while running..

5 Answers   Wipro,


How to find the mouse entering an image?..while entering need to display next image...

4 Answers  


what is message Testing ?

1 Answers   L&T,


Categories