6.4. Using Threads in GUI Applications

The book entitled Visual C++: Developing Professional Applications for Windows 98 and NT using MFC, by Marshall Brain and Lance Lovette (ISBN 0-13-085121-3), shows how to use C++ and the Microsoft Foundation Class library to create GUI applications for Windows. In this section we will look at two different ways to use threads in a typical GUI application.

Listing 6.6 contains the code for a simple Mandelbrot set program that does not use threads. See Appendix A for compilation instructions. When you run this program, you can choose the Draw option in the File menu to cause the window to redraw. Unless you are working with a very zippy machine, do not initially make the window any larger than its default ...

Get Win32 System Services: The Heart of Windows® 98 and Windows® 2000 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.