Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.02 c
3-1078117698
MVA
2004-03-01 08:08
2004.03.28
Фильтрация


1-1078732046
Erik
2004-03-08 10:47
2004.03.28
Ошибка в TBaseVirtualTree.ScrollIntoView


7-1072684173
Andrey V.
2003-12-29 10:49
2004.03.28
Узнать ОС.


6-1073569733
Иксик
2004-01-08 16:48
2004.03.28
IP Helper API


7-1072874326
начинающий1
2003-12-31 15:38
2004.03.28
Подскажите как правильно подставить значения в процедуру




   Наверх