I'm making a little program that has a lot of small bitmaps loaded from resources and I'm always adding some bitmaps and sometimes removing some and I have to update the program each time with the new count. I'd like to either automate the counting, assuming there's a way to do that, or put the number of bitmaps into the resource itself, probably as a string.
I've been looking for the answer to that in the help and in various samples and on MSDN but I don't find anything useful, or, if I do, I don't recognize it.
Is there a way to determine the number of bitmaps? They are numerically named, BMP0001, etc. and they're sequential, so I thought about loading till I get an error but I thought there might be a better way. Also I'd like to know how many there will be before they're loaded if that's possible.
It seems like putting the count into the .rc file as a string should be the simplest answer but I have no idea how to do that. I guess that's really my question. How can I do that?
Thanks for any suggestions. By the way, I'd prefer either an explanation or a pointer to one to help me understand this stuff, to code that does it for me. Although I'll take whatever I can get.
Barry
I've been looking for the answer to that in the help and in various samples and on MSDN but I don't find anything useful, or, if I do, I don't recognize it.
Is there a way to determine the number of bitmaps? They are numerically named, BMP0001, etc. and they're sequential, so I thought about loading till I get an error but I thought there might be a better way. Also I'd like to know how many there will be before they're loaded if that's possible.
It seems like putting the count into the .rc file as a string should be the simplest answer but I have no idea how to do that. I guess that's really my question. How can I do that?
Thanks for any suggestions. By the way, I'd prefer either an explanation or a pointer to one to help me understand this stuff, to code that does it for me. Although I'll take whatever I can get.

Barry
Comment