I am looking for a way to embed an image in a library (Windows only). I donβt want to go in the "traditional" way to put it in resources (due to special circumstances, because of which it is not so convenient to deal with a resource descriptor.
Ideally, it would be something like xpm files: a βtextualβ representation of an image that fits in an ac array, and that some code is converted to a bitmap image in memory, which can then be loaded into HIMAGE or HICON in some way. Images that I want to implement are 32-bit bitmaps (BMPs). Any ideas? I use MFC, so the MFC library will be fine, but of course I can use a library that also does not use MFC. Thank.
c ++ visual-c ++ mfc
Roel Oct 22 '08 at 12:06 2008-10-22 12:06
source share