🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
2 messages
2 total messages Started by David Mon, 21 Apr 2008 15:42
Application Icon not correctly displayed in Vista
#394
Author: David
Date: Mon, 21 Apr 2008 15:42
10 lines
1265 bytes
For some reason the app I have created using BCB5 doesn't show its icon 
correctly in Vista.

Both the apps Icon and its shortcut seem to show a generic kind of icon in 
Vista even though it correctly shows it in XP.

Any thoughts ??

Thanks in advance
David
Re: Application Icon not correctly displayed in Vista
#402
Author: Mike Collins
Date: Wed, 23 Apr 2008 15:27
22 lines
1841 bytes
How have you assigned the icon to your application?

How did you create the icon?

I've always had issues with icons and BCB when you add them via the Project 
Options.  Now I always remove the default .res file from the project and 
create a new one using some thing like ResourceBuilder from SiComponents.  I 
think (and I might be totally wrong here) that Vista has a issue when 
locating the default icon because BCB names it as "MAINICON" as opposed to 
using the default numeric ID I.e. 101.

Also, vista seems to complain if your icons are not correctly constructed.

To test this, use something like ResourceHacker and pull on of the system 
icons out of shell32.dll.  Remove the default resource file from your 
project and add in a new one, if possible created with ResourceBuilder.  Add 
the extracted icon to the resource using an ID instead of a string name and 
make the Id 101.  Compile and try...

HTH

Mike C 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads