Storing Pictures in a DLL

Storing Pictures in a DLL

I found a vbx which allows me to place icons or bitmapson a command button. How can I store these images in onefile and read them in like an array for placement on the buttons? Will I need a ‘C’ compiler for this? Where can I find a ‘how to’ for doing this?

You won’t need a C compiler; however, you will need a Windows resource compiler, which is included with all C compilers for Windows. The resource compiler takes icons, bitmaps, etc. and puts them into a DLL. That type of thing is documented with the resource compiler.Alternately you can use the PicClip control. This stores the images in your executable with an easy way to index and load them.


Share the Post: