Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996

Storing Pictures in a DLL

Question:
I found a vbx which allows me to place icons or bitmaps on a command button. How can I store these images in one file 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.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date