What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » .ICOs in DLLs

.ICOs in DLLs
Author: Message:
ryxdp
Senior Member
****


Posts: 804
Reputation: 16
30 / Male / Flag
Joined: Jun 2006
O.P. .ICOs in DLLs
Hey,

I've been wondering how you put .ico files in DLLs, such as shell32. Ive tried thwacking them in the resources folder (VB 2005 Express) and debugging it, but when I open "TestFolder1"s properties and change the folder icon it says "There are no icon files in testicon.dll"

It's been bugging me because I want to add resources to a program, but the only way I see possible is to shove them in the actual program itself.
01-07-2007 03:10 AM
Profile PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
RE: .ICOs in DLLs
You should be able to add them as resources, but I don't think that's possible in the Express edition.

EDIT: You may be able to add them with a program like Resource Hacker.

This post was edited on 01-07-2007 at 03:18 AM by deAd.
01-07-2007 03:16 AM
Profile PM Find Quote Report
ryxdp
Senior Member
****


Posts: 804
Reputation: 16
30 / Male / Flag
Joined: Jun 2006
O.P. RE: .ICOs in DLLs
Resource Hacker worked. :cheesy:

btw, I just finished deleting everything except the icons and bitmaps in a shell32 copied to desktop, for use in special apps of mine. Also, I can't seem to find the icon for the restart button. I've scoured shell32 (where I think it is most likely) but I can't find it. :undecided:

I might make a program that lets you shutdown/green/restart/etc. without the (slight :S) hassle of clicking the start button...

But you don't care about that :^)
01-07-2007 05:39 AM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: .ICOs in DLLs
Why are you using s tripped version of shell32? Why not just load the resources direct from the real shell32?
As for adding your own resources, it is possible in the Express Edition, but I don't know exactly how to do it in VB. I know how in VC++ though.
[Image: spartaafk.png]
01-07-2007 01:25 PM
Profile PM Web Find Quote Report
ryxdp
Senior Member
****


Posts: 804
Reputation: 16
30 / Male / Flag
Joined: Jun 2006
O.P. RE: .ICOs in DLLs
I'm not using a tripped version...I just copied the original shell32 to my desktop and worked on that one instead :cheesy:
01-07-2007 09:17 PM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: .ICOs in DLLs
So, why are you working with a copy? You won't be able to distribute the program that way.
[Image: spartaafk.png]
01-10-2007 09:30 PM
Profile PM Web Find Quote Report
ryxdp
Senior Member
****


Posts: 804
Reputation: 16
30 / Male / Flag
Joined: Jun 2006
O.P. RE: .ICOs in DLLs
basically it's just a resource centre for any programs that need to use bitmaps/icons from shell32. I haven't figured out how to use the original shell32, and I don't care anyway :S
01-10-2007 11:15 PM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: .ICOs in DLLs
quote:
Originally posted by Snaal Sevool Snr.
basically it's just a resource centre for any programs that need to use bitmaps/icons from shell32. I haven't figured out how to use the original shell32, and I don't care anyway
Exactly the same as you use your copy... Hence, RaceProUK's comments ;)
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-11-2007 11:05 AM
Profile PM Find Quote Report
RaceProUK
Elite Member
*****

Avatar

Posts: 6073
Reputation: 57
39 / Male / Flag
Joined: Oct 2003
RE: .ICOs in DLLs
quote:
Originally posted by Snaal Sevool Snr.
I haven't figured out how to use the original shell32
LoadModule("shell32.dll");
You get a module handle you then use with resource loading functions.
[Image: spartaafk.png]
01-12-2007 06:33 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On