[fpc-pascal] Resources or alike
    Nico Aragón 
    na-list at espira.net
       
    Sat Mar 19 23:31:49 CET 2005
    
    
  
El Sábado, 19 de Marzo de 2005 15:34, Michał Woźniak escribió:
> Is it possible in FPC to incorporate something like Delphi resources into
> the compiled program?
> What I need is including a binary file within the executable (like when
> using BRCC32 and *.rc files in Delphi) so that its contents are accessible
> to the program at runtime, without the need to distribute those files
> separately.
IIRC, you don't even need resources:
  copy /b program.exe + file.dat combined.exe
Then you can open combined.exe from itself, seek to (filelength - 
sizeofdatafile -1) and use blockread.
-- 
saludos,
    Nico Aragón
    
    
More information about the fpc-pascal
mailing list