Resource files ...

When I create  images with Delphi image editor and save them as Pictures.res
(and add {$R Pictures.res} to my
application),does this mean that Delphi has embedded the pictures into my applications and that I can delete the
actual pictures themselves?
Meaning,that I do not have to ship them with my application if I run my application on another computer?
Also I would like to know if you have to declare *.res on every Form in the application or just on the Main Form?
Thank you!
EnejAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bogieman_Commented:
Yes it means you don't need the external files, and you only need to declare it once.
0
EnejAuthor Commented:
>>external files<< - you mean the actual
*.bmp files used to produce *.res???
0
RayGeideCommented:
  When you produce the res file, the bitmap is put in it, so then you could theoretically delete the bitmap.  Then when you compile the program, the contents of the res file is put in the exe file.
   The *.res statements need to be kept on each form.  If it is on unit1, then it points to unit1.res.  This contains things for the form.  At the least it contains the icon that is used for that form.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bogieman_Commented:
Yes - you only need the original BMP's to compile the RES file - not when you are running the program and using something like: image1.picture.bitmap.loadfromresource(...);  Or whatever.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.