Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I'm creating a Win32 Application in Visual Studio 2008. When you create a new project, a resource folder is created that contains 2 icon files ending in .ico. One of the icon files is named 'small.ico', and the other is named 'project_name.ico'. I have two questions regarding these files:

1. When I click on these files, there are 8 different bitmaps. I can modify 5 of the 8 bitmaps with the bitmap editor in Visual Studio. The other 3 bitmaps, which are all 32 bit bitmaps, can't be modified. If I click on one, I get a color pallete in the tool bar, but I can't click on the pencil tool or paint tool or any of the other editor tools to modify it. These tools work for all the other bitmap sizes.

2. When I deploy the application and create a windows installer, the desktop shortcut has a normal blank windows icon. I can't figure out how to include the icons I created. When I create the shortcut in the deployment project, I try to choose an icon, but the only icon it allows me to select is the small.ico. And for some reason when it displays the small.ico, it is blank.

Does anyone know what is going on here? The msdn documentation sucks for figuring this out.

Thanks!
Posted

1 solution

It doesn't look like the editor can handle 32 bit icons. At least I'm not able to add that type of image to an icon using VS2010. It's probably because of the alpha channel.

As for question 2, I'll have to pass.

Have you tried replacing the icon with a different one not having the 32 bit images?
 
Share this answer
 
Comments
weylspinor 28-Aug-10 3:25am    
Thanks! It finally worked deleting the 32-bit icons from the .ico files. BTW... if the deployment expects 32-bit icons by default, and Visual Studio can't create or edit them, what is everyone else using to create/edit them? Thanks!
«_Superman_» 28-Aug-10 3:29am    
You can use other photo editing software like photoshop or gimp.
Niklas L 28-Aug-10 3:43am    
Search for [icon bit depth 32 "resource editor"]. It turned up with a few choices.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900