Number of Threads in a simple Windows Application.
-
HI, How many threads will be there in a normal WIN 32/MFC application? My understanding is there will be 2 threads. Thread 1: Thread start from WinMain() and continously checking for messages and dispatches them to windows procedure. Thread 2: Windows Procedure thread. Am I right?
-
HI, How many threads will be there in a normal WIN 32/MFC application? My understanding is there will be 2 threads. Thread 1: Thread start from WinMain() and continously checking for messages and dispatches them to windows procedure. Thread 2: Windows Procedure thread. Am I right?
No, there is only one thread. That's why if you start a lenghty process in one of your function, your appliation will freeze: it won't be able to respond to messages (like WM_PAINT)
Cédric Moonen Software developer
Charting control [v1.1]