|
-
Jul 20th, 2001, 08:50 PM
#5
Fanatic Member
Getting icons in code isn't very hard, if you have the need to have it done "automatically" (you might get tired of messing with another prog to them down the road ). You may even want to make your own VB extractor one day. Playing with this stuff is pretty neat. I took the relevant stuff out of a module I made and put it in the one attached. The sub in this module will extract all of the icons in a file and save them with a base name you specify plus the number of the icon and the normal extention (basename0.ico, basename1.ico etc). It will work on exe files, dll files, and a regular icon file (but you'd only be getting the same thing there).
VB Code:
'take out all the icons in the VB5 exe and save them as vb0.ico,
'vb1.ico ... in the same directory
ExtractAllIcons "c:\program files\vb5\vb5.exe", "c:\program files\vb5\vb"
I'm baaaack...
VB5 Professional Edition, VC++ 6
Using a 1 gHz Thunderbird, 256 mb RAM, 40 gb HD system with Win98se
I feel special because I finally figured out how to loop midis: Post link
I'm a fanatic too 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|