Article View: borland.public.cppbuilder.nativeapi
Article #402Re: Application Icon not correctly displayed in Vista
From: Mike Collins
Date: Wed, 23 Apr 2008 15:27
Date: Wed, 23 Apr 2008 15:27
22 lines
1841 bytes
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
Technical Details
Message-ID:
<480f44e1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!eweka.nl!lightspeed.eweka.nl!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mailReferences:
<480cb5e9$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d5c7b3297ff83451 X-Google-Attributes: gid10cc67,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Mike Collins" <its@TheBottomOfThePost> Newsgroups: borland.public.cppbuilder.nativeapi References: <480cb5e9$1@newsgroups.borland.com> Subject: Re: Application Icon not correctly displayed in Vista Date: Wed, 23 Apr 2008 15:27:51 -0000 Lines: 24 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.3959 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4133 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 81.132.14.9 Message-ID: <480f44e1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1208960225 81.132.14.9 (23 Apr 2008 07:17:05 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!eweka.nl!lightspeed.eweka.nl!feeder.erje.net!news.isoc.lu!newsgroups.borland.com!not-for-mail