This documentation is archived and is not being maintained.

Application and Thread Support Classes

Each application has one and only one application object; this object coordinates other objects in the running program and is derived from CWinApp.

The Microsoft Foundation Class (MFC) Library supports multiple threads of execution within an application. All applications must have at least one thread; the thread used by your CWinApp object is this primary thread.

CWinThread encapsulates a portion of the operating system's threading capabilities. To make using multiple threads easier, MFC also provides synchronization object classes to provide a C++ interface to Win32 synchronization objects.

Application and Thread Classes

Encapsulates the code to initialize, run, and terminate the application. You will derive your application object from this class.
The base class for all threads. Use directly, or derive a class from CWinThread if your thread performs user-interface functions. CWinApp is derived from CWinThread.

ISAPI Application Classes

Filters selected HTTP requests sent to an ISAPI server.
Extends the functionality of an ISAPI server by processing client requests.

Synchronization Object Classes

Base class of the synchronization object classes.
A synchronization class that allows only one thread within a single process to access an object.
A synchronization class that allows between one and a specified maximum number of simultaneous accesses to an object.
A synchronization class that allows only one thread within any number of processes to access an object.
A synchronization class that notifies an application when an event has occurred.
Used in member functions of thread-safe classes to lock on one synchronization object.
Used in member functions of thread-safe classes to lock on one or more synchronization objects from an array of synchronization objects.

Related Classes

Parses the command line with which your program was started.
Puts a wait cursor on the screen. Used during lengthy operations.
Handles persistent storage of docking state data for control bars.
Maintains the most recently used (MRU) file list.

See Also

Class Library Overview