Question
What is the use of cwinapp class?

Answers

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.   Your Comment






Search
Can you Answer!!
  • Q What was the biggest success you had at your last job?
  • Q Give any three advantages of joint stock company?
  • Q What does the Pulse Oximeter do?
  • Q What is the best way to call a C# method from Javascript
  • Q Tell us about a politically complex situation at work.
  • Q What is control array and How many we can have it with in the form?
  • Q What would you do if our competitor offered you a position?
  • Q What is IFRS?
  • Q What is meant by antenna beam width?
  • Q Who was the famous ruler of Mewar who repaired the fort of Achalgarh?
  • Q What is the difference between the ip default−gateway, ip default−network, and ip route 0.0.0.0/0 commands?