devxlogo

Storing Pictures in a DLL

Storing Pictures in a DLL

Question:
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?

Answer:
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.

See also  How HealthStream Learning Center Supports Healthcare Education and Compliance
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist