Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Use a WinAPI function, PostThreadMessage, to catch this message and ensure that the module is unloaded properly. In VC++ and MFC, the WM_EXIT eventis caught in a subclass of CWinApp; in Delphi and СBuilderCBuilder, it is caught in a subclass of TApplication.