Autor Beitrag
xxlolxx
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 48

win xp home
Delphi 7 personal
BeitragVerfasst: So 21.01.07 22:07 
hallo

wie bekommt man den text aus einer ressoursendatei in ein memo oder richedit feld???
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Mo 22.01.07 00:33 
Wie kriegst Du den Text in die Resource ?

_________________
Blackheart666
Der Irrsinn ist bei Einzelnen etwas Seltenes, - aber bei Gruppen, Parteien, Völkern, Zeiten die Regel. (Friedrich Nietzsche)
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 22.01.07 01:33 
Code:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
procedure TForm1.Button4Click(Sender: TObject);
var
  rs: TResourceStream;
begin
  rs := TResourceStream.CreateFromID(HInstance, 2, RT_RCDATA);
  try
    Memo1.Lines.LoadFromStream(rs);
  finally
    FreeAndNil(rs);
  end;
end;


Zugehörige Ressource:
ausblenden Quelltext
1:
2:
3:
4:
1 BMP Gipsy.bmp
1 RCDATA FirstDll.dll
2 RCDATA Unit1.pas
TESTWAVE WAVE instrument7.wav