|
|
|
Чтение файлов из директории
|
|||
|---|---|---|---|
|
#18+
Уважаемая общественность! Подскажите плз, у меня билдер6.0. мне нужно из директории считывать файлы (по очереди). Как это сделать лучше? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.10.2006, 10:27 |
|
||
|
Чтение файлов из директории
|
|||
|---|---|---|---|
|
#18+
needjava n> Уважаемая общественность! Подскажите плз, у меня n> билдер6.0. мне нужно из директории считывать файлы (по n> очереди). Как это сделать лучше?RTFM FindFirst, FindNext, TSearchRec (если непременно билдер) А вобще, в винапи есть функции. VCL-шные же функции лишь обертки Posted via ActualForum NNTP Server 1.3 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.10.2006, 10:31 |
|
||
|
Чтение файлов из директории
|
|||
|---|---|---|---|
|
#18+
У меня нет документации, только соответствующие заголовочные файлы - по ним же искать долго. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.10.2006, 10:35 |
|
||
|
Чтение файлов из директории
|
|||
|---|---|---|---|
|
#18+
FindFirst - требует имя файла, а я его не знаю - мне надо считать все фалы из известной директории ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.10.2006, 10:54 |
|
||
|
Чтение файлов из директории
|
|||
|---|---|---|---|
|
#18+
needjavaУважаемая общественность! Подскажите плз, у меня билдер6.0. мне нужно из директории считывать файлы (по очереди). Как это сделать лучше? Например, так (Borland C++ Builder 5): Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. Все непонятки ищите в Хелпе. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.10.2006, 11:04 |
|
||
|
Чтение файлов из директории
|
|||
|---|---|---|---|
|
#18+
TFileListBox - это какой include должен быть? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.10.2006, 12:04 |
|
||
|
Чтение файлов из директории
|
|||
|---|---|---|---|
|
#18+
Еще вариант: Win SDKAn application sends an LB_DIR message to add a list of filenames to a list box . LB_DIR wParam = (WPARAM) (UINT) uAttrs; // file attributes lParam = (LPARAM) (LPCTSTR) lpszFileSpec; // filename address Parameters uAttrs Value of wParam. Specifies the attributes of the files to be added to the list box. This parameter can be a combination of the following values: Value Description DDL_ARCHIVE Includes archived files. DDL_DIRECTORY Includes subdirectories. Subdirectory names are enclosed in square brackets ([ ]). DDL_DRIVES Includes drives. Drives are listed in the form [-x-], where x is the drive letter. DDL_EXCLUSIVE Includes only files with the specified attributes. By default, read-write files are listed even if DDL_READWRITE is not specified. DDL_HIDDEN Includes hidden files. DDL_READONLY Includes read-only files. DDL_READWRITE Includes read-write files with no additional attributes. DDL_SYSTEM Includes system files. lpszFileSpec Value of lParam. Points to the null-terminated string that specifies the filename to add to the list. If the filename contains wildcards (for example, *.*), all files that match the wildcards and have the attributes specified by the uAttrs parameter are added to the list. Return Values The return value is the zero-based index of the last filename added to the list. If an error occurs, the return value is LB_ERR. If there is insufficient space to store the new strings, the return value is LB_ERRSPACE. Posted via ActualForum NNTP Server 1.3 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.10.2006, 12:10 |
|
||
|
Чтение файлов из директории
|
|||
|---|---|---|---|
|
#18+
needjavaTFileListBox - это какой include должен быть? C++Builder 5 Help TFileListBox is a specialized list box that lists all the files in a specified directory. Unit filectrl Description Add TFileListBox to a form to allow users to select a file. Use TFileListBox along with TDriveComboBox, TFilterComboBox, and TDirectoryListBox to add full file selection capabilities to a form. Note: To add a standard Windows file open or save dialog to an application, use TOpenDialog or TSaveDialog instead. Поэтому: Код: plaintext 1. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 06.10.2006, 12:26 |
|
||
|
|

start [/forum/topic.php?fid=57&msg=34036774&tid=2030348]: |
0ms |
get settings: |
11ms |
get forum list: |
18ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
418ms |
get topic data: |
14ms |
get forum data: |
4ms |
get page messages: |
67ms |
get tp. blocked users: |
2ms |
| others: | 252ms |
| total: | 792ms |

| 0 / 0 |
