Article View: borland.public.cppbuilder.nativeapi
Article #2537Re: Problem with ExtractIcon in BDS2006
From: Mike Collins
Date: Mon, 12 Feb 2007 12:35
Date: Mon, 12 Feb 2007 12:35
35 lines
2281 bytes
2281 bytes
Hay Feex.... Can you explain exactly what you are trying to do - i'm a bit confused by what you are trying to achieve as your end goal. I've messed on loads with icons and other images under windows and then winXP - there are some key issues with some of the api's and in my personal opinion, the way builder creates its resources. Perhaps i can provide some details if you can clarify what you are trying to do - i might be totally braking up the wrong tree though. Mike "FEEX" <feex@drehoek.net> wrote in message news:45ca135e@newsgroups.borland.com... >I created an executable (SFX) file with an icon 32 x 32 and 16 colors. > > In BCB5 and BCB6 when i extracted the icon from that file with > HICON hico = ExtractIcon(HInstance, File.c_str(), 0); > I got the original icon size is 766 bytes > > Now when I do the same using TurboC++ 2006 I receive an icon 32 x 32 but > with 2^32 colors. size is 4KB > > Is there anything we can do to extract the icon from this ( or any other > file) with its original size and color dept? > Or has somebody a function to replace an icon by another one with > different size that can/will work all windows version > (ReplaceResource only works in NT based systems) > > > -- > Roger Aelbrecht > www.drehoeksw.net > www.bcbzip.net
Technical Details
Message-ID:
<45d05f1b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45ca135e@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d31afbf0207af4b7 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Mike Collins" <its@TheBottomOfThePost.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <45ca135e@newsgroups.borland.com> Subject: Re: Problem with ExtractIcon in BDS2006 Date: Mon, 12 Feb 2007 12:35:49 -0000 Lines: 37 Organization: SDA Ltd X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.2826 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2826 NNTP-Posting-Host: 89.243.11.19 Message-ID: <45d05f1b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1171283739 89.243.11.19 (12 Feb 2007 04:35:39 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail