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 CWinApp class?

Answers were Sorted based on User's Feedback



what is the use of CWinApp class?..

Answer / gowri shankar

CWinApp is an application object provides member functions
for initializing your application (and each instance of it)
and for running the application.

Each application that uses the Microsoft Foundation classes
can only contain one object derived from CWinApp. This
object is constructed when other C++ global objects are
constructed and is already available when Windows calls the
WinMain function, which is supplied by the Microsoft
Foundation Class Library. Declare your derived CWinApp
object at the global level.

When you derive an application class from CWinApp, override
the InitInstance member function to create your
application's main window object.

In addition to the CWinApp member functions, the Microsoft
Foundation Class Library provides the following global
functions to access your CWinApp object and other global
information:

•AfxGetApp Obtains a pointer to the CWinApp object.

•AfxGetInstanceHandle Obtains a handle to the current
application instance.

•AfxGetResourceHandle Obtains a handle to the
application's resources.

•AfxGetAppName Obtains a pointer to a string containing
the application's name. Alternately, if you have a pointer
to the CWinApp object, use m_pszExeName to get the
application's name.

Is This Answer Correct ?    18 Yes 2 No

what is the use of CWinApp class?..

Answer / rck

It is used for providing application base address and for resource handling functions.

Is This Answer Correct ?    2 Yes 2 No

what is the use of CWinApp class?..

Answer / ctharam

The base class from which you derive a Windows application object.

class CWinApp : public CWinThread

When you derive an application class from CWinApp, override the InitInstance member function to create your application's main window object.


1) AfxGetApp Obtains a pointer to the CWinApp object.

2) AfxGetInstanceHandle Obtains a handle to the current application instance.

3) AfxGetResourceHandle Obtains a handle to the application's resources.

4) AfxGetAppName Obtains a pointer to a string containing the application's name. Alternately, if you have a pointer to the CWinApp object, use m_pszExeName to get the application's name.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More MFC Interview Questions

How to create a Modeless Dialog?

5 Answers  


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

6 Answers  


what is the difference between compiling and building?

1 Answers  


1)To Remove WS_MINIMIZEBOX in a Frame ?

1 Answers  


what is the use of AFX_MANAGE_STATE ?

4 Answers   HCL,


What function is used to disable a control at runtime?

7 Answers  


what is the size of a process

2 Answers   E Logic, IBM,


what is message loop how mfc does it internally?

4 Answers   Aspire,


Tell me the work of HTREDUCE and HTZOOM

1 Answers   E Logic,


What view class enables you to use an edit control as a view?

1 Answers  


Difference between Cclint DC & Cpaint Dc

6 Answers   E Logic,


what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?

0 Answers  


Categories