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 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.