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.

Subscribe / Share

It's very calm over here, why not leave a comment?

Leave a Reply




Categories

Powered by Yahoo! Answers