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 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal