Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CWinApp::InitApplication
CWinApp                                     Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  virtual    BOOL InitApplication();
 
  Remarks
 
  Windows allows several copies of the same program to be running at the
  same time. Thus, application initialization is conceptually divided into
  two sections: one-time application initialization that is done the first
  time the program runs and instance initialization that runs each time a
  copy of the program runs, including the first time. This function is
  called by the Foundation library version of WinMain. Override
  InitApplication if your application needs one-time initialization such
  as Windows class registration.
 
  Return Value
 
  TRUE if initialization is successful; otherwise FALSE.
 
  See Also
 
  CWinApp::InitInstance
 
 
                                     -♦-