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

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



Память: 0.45 MB
Время: 0.028 c
1-1086886132
Apocalepse
2004-06-10 20:48
2004.06.27
Написание текстового редактора. Открытие им фала.


14-1086904004
Aborigen
2004-06-11 01:46
2004.06.27
КПК с GSM/GPRS модулем. Помогите выбрать!?


1-1086742079
Алекс А
2004-06-09 04:47
2004.06.27
Помогите переделать if в формулу? Что-то торможу я


9-1077366521
неважно
2004-02-21 15:28
2004.06.27
Игровое поле для ТБС


14-1086361745
Jeer
2004-06-04 19:09
2004.06.27
Терракт в Самаре




   Наверх