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

Вниз

why the PStream.Memory can t assign to parameter   Найти похожие ветки 

 
child   (2004-02-04 09:22) [0]

procedure TForm_Main.Button1Click(Sender: PObj);
var
 Temp_Stream: PStream;
begin
 Temp_Stream := NewReadFileStream("test.exe");
 Self.Form.Caption := Int2Str(DWORD(Temp_Stream.Memory));
 Temp_Stream.Free;
end;

caption always "0",  why the PStream.Memory can"t assign to parameter


 
SPeller ©   (2004-02-04 15:34) [1]

Why are you using Memory while reading from file? Data reads directly from file to the buffer passed in parameters. Memory property is actual only in MemoryStreams.


 
Vladimir Kladov   (2004-02-04 20:38) [2]

procedure TForm_Main.Button1Click(Sender: PObj);
var
Temp_Stream: PStream;
begin
Temp_Stream := NewReadFileStream("test.exe");
Self.Form.Caption := Temp_Strem.ReadStr;
Temp_Stream.Free;
end;



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

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

Наверх




Память: 0.46 MB
Время: 0.039 c
1-1086763480
pasha_golub
2004-06-09 10:44
2004.06.27
Производительность (оптимизация) функции


14-1086758114
Baks
2004-06-09 09:15
2004.06.27
За что вы боритесь?


6-1083623695
Eugene13
2004-05-04 02:34
2004.06.27
База видео фильмов в инете...


1-1087214251
PenguinX
2004-06-14 15:57
2004.06.27
Работа с файлом


1-1086913022
antonn
2004-06-11 04:17
2004.06.27
Не выключается комп