13.3.  Thread Related Questions

Microsoft Visual C++/Microsoft Foundation Classes


13.3.  Thread Related Questions

13.3.1. How do I perform background processing in my application?

Many applications perform lengthy processing "in the background" during intervals that the user is not otherwise interacting with the application. In an application developed for the Microsoft Windows operating system, an application can perform background processing by splitting a lengthy process into many small fragments. After processing each fragment, the application yields execution control to Windows using a PeekMessage() loop.

An application developed with the Microsoft Foundation Class Library can perform background processing either by using the PeekMessage() loop in the library code's main message loop or by embedding another PeekMessage() loop in the application.

See MSVC Knowledge Base Q99999 for more info.

MSVC Knowledge Base 6/7/95.

13.3.2. How do I send a message to another thread?

Try using SendNotifyMessage() to send messages to another thread.

[email protected], Neils Ull Jacobsen via programmer.misc, 6/18/95