6/2/09

What types of threads are supported by MFC ? How they can be created ?what is the difference between them?

1. Worker Threads.
Provide only background processing. Doesn't handle messages.
Creation: By calling AfxBeginThread() and providing a global function as a parameter.
2 UI Threads.
These threads have the UI (Window) and can process the messages, i.e. user interaction (I/O) with window.
Creation: By calling AfxBeginThread() and providing a class which is derived from CWinThread and implements all message handling mechanism as a parameter.

No comments:

ITUCU