Главная страница
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.032 c
14-1087020424
YurikGL
2004-06-12 10:07
2004.06.27
На пиратских копиях Windows XP не установится Service Pack 2


3-1086168355
din
2004-06-02 13:25
2004.06.27
Как создать запрос по датам


14-1086858146
Verg
2004-06-10 13:02
2004.06.27
Странное мышление


4-1085083692
Sanek_metaller
2004-05-21 00:08
2004.06.27
Параметры через SandMessage();


14-1086759148
KilkennyCat
2004-06-09 09:32
2004.06.27
мой любимый анекдот (мож кто не слышал) :)