A Sample Multithreaded Application

To demonstrate the usage of TThread objects within the context of a real-world application, this section focuses on creating a file-search application that performs its searches in a specialized thread. The project is called DelSrch, which stands for Delphi Search, and the main form for this utility is shown in Figure 5.6.

Figure 5.6. The Main form for the DelSrch project.

The application works like this. The user chooses a path through which to search and provides a file specification to indicate the types of files to be searched. The user also enters a token to search for in the appropriate edit control. Some ...

Get Borland® Delphi™ 6 Developer's Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.