Multiple choice technology programming languages

Which class implements the role of the WinMain() function?

  1. CWnd class

  2. CWinApp class

  3. CWinThread class

  4. None of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

CWinApp encapsulates the WinMain() functionality in MFC applications - it initializes the application, processes the message loop, and handles cleanup. Each MFC app has exactly one CWinApp-derived object. CWnd handles window functionality, CWinThread manages threads, and CWinApp actually contains the application's entry point logic.