The Wayback Machine - https://web.archive.org/web/20100724060743/http://www.codeguru.com:80/cpp/w-d/dislog/threads/

    Threads

    Dynamic Creation of Thread-Separated Dialogs Having Only Its Class Name

    The article describes a way of creating class objects by naming its classes. This way permits you to create a new class object by calling a function or class method that receives as input parameters pointer to CRuntimeClass object. In general, it shows you how to design a mechanism that creates a user-selected dialog window in its own child thread.

    Simple Worker Thread Example

    Demonstrates how to start a worker thread from a dialog, keeping the dialog free while running a busy loop in the background.

    A Dialog class to drive a worker thread

    A Dialog class to drive a worker thread