Buscar un archivo sin FindFirst (ejemplo)
La API SearchTreeForFile realiza la búsqueda de un archivo en una ruta específica, sin embargo el proceso que invoca a dicha API se detiene mientras el S.O. realiza lo acometido. La idea es crear un hilo adicional el cual va a ser detenido por la API mientras la aplicación funciona sin aparentar colgarse. Una vez que la búsqueda termina el hilo envía un mensaje al proceso que ha creado el hilo con la información que éste necesita. El Timer en el ejemplo solo le dará una animación al proceso de búsqueda para que el usuario no se impaciente, ya dependerá del lector realizar la animación que vea pertinente acorde con el formato de su interfaz. |
La franja horaria es GMT +2. Ahora son las 18:12:45. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi