473,385 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Adding icons to a dll

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?

Feb 15 '07 #1
4 7345
TEK wrote:
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.
--
Regards JJ (UWA)

Feb 15 '07 #2
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.
--
Regards JJ (UWA)
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.

Feb 19 '07 #3
TEK wrote:
>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.
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
Feb 20 '07 #4
TEK
On Feb 20, 12:01 pm, "Thomas Due" <tdue@mail_remove_.dkwrote:
TEKwrote:
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.

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!

--
Thomas Due
[Snip]

Feb 23 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
by: Crom | last post by:
Ok. I want to settle this once and for all. After looking at the source for various, rather sizeable (but not all were so big) web sites that use icons that show up in the addressbar beside the...
0
by: Andre Viens | last post by:
Hello, I am using the following variation of code from <http://support.microsoft.com/default.aspx?scid=kb;EN-US;319340> to add icons to an imagelist for use in a listview: Private Structure...
6
by: B-Dog | last post by:
Does anyone know where I can find some professional looking icons that are the standard windows collection for developers? The ones that came on the VS cd are pretty lame. Thanks
1
by: jediknight | last post by:
Hi All, I am very new to ASP.NET but have used c# for windows very much. I would like to display an imagemap which has the background as the map of a city centre and icons denoting important...
2
by: SharpCoderMP | last post by:
i'm trying to embed multiple program icons in my executable. the only way so far i managed to do that is to embed native win32 resource file with multiple icons. it works, but... when i create a...
1
by: Manfred | last post by:
Hello I added some icons to an imagelist. I checked first the image size and image depth and adjusted the settings according in the imagelist before adding the icon. The icon still gets...
1
by: John | last post by:
Is there such a thing as storing icons or bitmaps into a resource file, and adding more icons or bitmaps into the resource file at runtime? I want to store a bunch of icons into a resource file,...
3
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, In my application i'm using two different icons which being displayed in different occasions. how can i add this Icons to my project, so when i'll bring my exe file to another machine, the...
0
by: Support Desk | last post by:
-----Original Message----- From: Kevin McKinley Sent: Tuesday, August 26, 2008 4:37 PM To: python-list@python.org Subject: Adding Icons to my Programs I've been turn my script into executible...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.