On Sun, 23 Mar 2008 13:06:24 -0700, John <jo************@aol.comwrote:
Is there such a thing as storing icons or bitmaps into a resource
file, and adding more icons or bitmaps into the resource file at
runtime?
No, not really. Your executable file is not writeable while it's running,
and so you can't modify it by adding new resources.
I want to store a bunch of icons into a resource file, and at runtime
I want to be able to add more icons as I need to add. I don't want
to use an imagelist because that will be a set number of icons in the
program.
If there's "a set number of icons in the program", why do you want to add
more icons? Seems to me, by definition there's not a set number. The
number can change according to how many you add. (Not that using an
ImageList would change the fact that you can't modify the resources in
your executable while your executable is running, but still...)
You'll simply need to include some mechanism for storing the additional
icons elsewhere.
Pete