Главная страница
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.041 c
14-1086458206
Gerry
2004-06-05 21:56
2004.06.27
Помгите обойти Delphi 6!!!!


14-1086899285
KnowledgeSeeker
2004-06-11 00:28
2004.06.27
Память под приложение.


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


1-1086960361
DillerXX
2004-06-11 17:26
2004.06.27
Как мне считать Стринг из файла так, чтобы он заканчивался...


14-1086372476
Murkt
2004-06-04 22:07
2004.06.27
CD vs lossless сжатие. И скажем нет Creative у.