Adding icons to a dll

T

TEK

Hello

I want to add several icons to my dll, so that it can be used by
windows to indicate icons for my known filetypes.
I'm using VS2005, but I cannot seem to find out how to do this.

I can get one single visible icon by setting the application icon, but
that does not do it. I need to set serveral icons.
(I'm testing the icon availability by going to a shortcut, selecting
properties, then Change icon and navigating to my application file)

Any ideas about how to do this?
 
J

j1mb0jay

TEK said:
Hello

I want to add several icons to my dll, so that it can be used by
windows to indicate icons for my known filetypes.
I'm using VS2005, but I cannot seem to find out how to do this.

I can get one single visible icon by setting the application icon, but
that does not do it. I need to set serveral icons.
(I'm testing the icon availability by going to a shortcut, selecting
properties, then Change icon and navigating to my application file)

Any ideas about how to do this?

Add new item to the project, select properites for the new "icon" and then
set it to be an embedded resource. Works for all file types.
 
T

TEK

Add new item to the project, select properites for the new "icon" and then
set it to be an embedded resource. Works for all file types.

Jup, that would have been nice.
I appricate your answare, but you are telling me how to add a icon
resource and how to include it in my assembly.
That does'nt do fix it, as the icons, even if included in the
assembly, does not show up if you for example peforms the test
described here:
I'm testing the icon availability by going to a shortcut, selecting properties, then Change icon and navigating to my application file

The icons is not available using your suggested method.
 
T

Thomas Due

TEK said:
The icons is not available using your suggested method.

Is that even possible with a managed assembly?

--
Thomas Due
Posted with XanaNews version 1.18.1.6

"To fight and conquer in all your battles is not supreme excellence;
supreme excellence consists in breaking the enemy's resistance without
fighting."
-- Sun-Tzu
 
T

TEK

TEKwrote:


Is that even possible with a managed assembly?

Yes it is, if you do it in C++ .Net it is possible, but it does not
seem to be possible in C#.
It seems like a very strange limitation!

[Snip]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top