Главная страница
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.02 c
8-1081859461
s
2004-04-13 16:31
2004.06.27
tif-формат


1-1086796916
Angel_
2004-06-09 20:01
2004.06.27
Как получить доступ к событиям формы пока работает цикл?


14-1086803093
Vasya.ru
2004-06-09 21:44
2004.06.27
Баттон в виде рычага


1-1087244594
Step[B.M.]
2004-06-15 00:23
2004.06.27
Как БЫСТРО определить есть ли в файле DOC (MWord) искомая фраза?


14-1086852593
Pro
2004-06-10 11:29
2004.06.27
Нужна прога типа Диспетчер Задач