Unfortunately changes in resources defined like that are not always picked up correctly.
Thanks for the info... I didn't know that... (I keep that in mind...).
The example works nice, but that doesn't mean it will always work correctly...
Normally I don't put everything into the exe-file, I like the idea that the user can change for example PNG's if he really want to.. of course it depends on the program and the purpose...
Some people think if they store data inside a executable then nobody can access or change it... ..far from the truth...
I don't see a big difference in one exe-file or one zip-file or 7z-file or whatever format... but of course everybody can do it as he/she likes.
EDIT:
If there are problems after a path change for one res-file, then it can be useful to delete the lib-folder and the *.exe and *.dgb file. That solved my problem once...
EDIT II:
Now I know why rc-files didn't work: I tried all this with 1.6.4 FPC 3.0.2... obviously a bug...
No problem at all with 1.8:
RC-File: MyRes.rc: HELLO RCDATA Hello.txt
Unit: {$R MyRES.RC}
This way it's easy enough... I don't like to precompile a *.res file or *.lrs-file... and this way there is nothing to change if I change some files...
That's nice...