You must make a .rc file and add it to your project. The contents of the RC file are as follows:
FIXED48 IMAGE ..\Resources\Fixed48x48.png MENU16 IMAGE ..\Resources\Menu16x16.png TICK SOUND ..\Resources\Tick.wav PING SOUND ..\Resources\Ping.wav
Now after the build, you can load one of these features using TResourceStream:
procedure TdmReportGeneral.InsertLogo(Memo: TStringList; View: TfrView); var S: TResourceStream; begin if (View is TfrPictureView) and (View.Name = 'Logo') then begin S := TResourceStream.Create( 0, 'FIXED48', 'IMAGE' ); try // do something useful... TfrPictureView(View).Picture.MetaFile.LoadFromStream( S ); finally S.Free(); end; end; end;
source share