Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.03.28;
Скачать: CL | DM;

Вниз

GetFileType   Найти похожие ветки 

 
Samtron   (2004-03-05 16:16) [0]

Скажите как пользоваться этой функцией(в Help ее нет).
если написать так:
form1.Edit1.Text:=getfiletype(f) то

[Error] Unit1.pas(30): Incompatible types: "Cardinal" and "Text"


 
Fay ©   (2004-03-05 16:17) [1]

1) form1.Edit1.Text:=IntToStr(getfiletype(f))
2) Что такое f ?


 
Samtron   (2004-03-05 16:22) [2]

f это файловая переменная.
А inttostr здесь непоможет


 
Юрий Зотов ©   (2004-03-05 16:22) [3]

Это функция API. В том хелпе и ищите.

The GetFileType function returns the type of the specified file.

DWORD GetFileType(
 HANDLE hFile  // file handle
);


Parameters

hFile
Identifies an open file handle.


Return Values

The return value is one of the following values:

FILE_TYPE_UNKNOWN The type of the specified file is unknown.
FILE_TYPE_DISK The specified file is a disk file.
FILE_TYPE_CHAR The specified file is a character file, typically an LPT device or a console.
FILE_TYPE_PIPE The specified file is either a named or anonymous pipe.



Страницы: 1 вся ветка

Текущий архив: 2004.03.28;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.042 c
1-1078420433
TSa
2004-03-04 20:13
2004.03.28
Спраятать TMainMenu


14-1078064676
blackweber
2004-02-29 17:24
2004.03.28
как загрузить комп без клавиатуры?


3-1076957114
casper
2004-02-16 21:45
2004.03.28
Использую TADOQuery1.Запрос SELECT * FROM DB WHERE DB.DATA=01/06


14-1078001579
Layner
2004-02-28 23:52
2004.03.28
Люди, никто не ставил на комп где стоит NT2000, 98, 2й ОС?


1-1078858610
КомофОнСамый
2004-03-09 21:56
2004.03.28
почему не получается получить имя От TComponent