Simple Worker Thread Example
This example demonstrates how to start a worker thread from a dialog, keeping the dialog free while running a busy loop in the background. The first of three loops is run from an OnButton event by declaring a variable and calling a function from CloopClass. This is to demonstrate that the dialog can't be moved while the loop is running. The second loop is contained within the thread controller function, which starts after the first loop is done. This allows one to move the dialog while the loop runs. The third loop is created as the first one but from within the worker thread instead of the dialogs OnButton event. The dialog is still free to move while the third loop runs.
Downloads
Download demo project - 25 KbDate Posted: 5/17/01

Comments
Good Artical
Posted by Thandava on 05/11/2011 10:52amVery Good Artical
ReplySimple and good demo for the beginners
Posted by klee777 on 06/12/2009 04:00pmThanks
Replyddd
Posted by Legacy on 05/22/2001 12:00amOriginally posted by: huxuse
Replyhelp-me
Posted by Legacy on 05/21/2001 12:00amOriginally posted by: haihong
Reply