Главная страница
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.048 c
4-1084725225
Руслан
2004-05-16 20:33
2004.06.27
Как отловить нажатие кнопок мыши


3-1086270637
AlexanderSK
2004-06-03 17:50
2004.06.27
Фильтрация повторяющихся значений


1-1087063212
Apocalepse
2004-06-12 22:00
2004.06.27
Как сделать Button1.Enabled:=true; в такой ситуации?


8-1081352734
Pa5ha
2004-04-07 19:45
2004.06.27
iD3DXFont


14-1086983057
Феликс
2004-06-11 23:44
2004.06.27
Подскажите хороший форум потолько по Visual Basic