🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.programmer.codewarrior
Article #1008

How does codewarrior compile icon resources for x86?

#1008
From: Jason Botwick
Date: Fri, 31 May 2002 03:55
17 lines
2207 bytes
I'm experiencing a weird problem with application and document icons. We
have an icon identified in our .rc file as the APPICON, and it exists in an
.ico file. However, when the resource is compiled into a .exe file, we end
up with a list of 6 icons. The 1st, 3rd and 5th are blank, while the even
ones contain different sizes and depths of the original .ico file. When the
program is installed on Windows NT, the program has no icon, nor do any of
its documents. On Win2k, it works fine.

So I'm wondering, how does Codewarrior compile .ico files identified in .rc
files into resources that are then embedded into a .exe file? How can I get
the icons to show up in Win NT?

(I cross-posted this to the Mac groups because this is all part of a Mac->PC
port of an app, all development being done on the Mac.)

Any suggestions would be welcome, or any redirection to an example of an app
with simple icon resources for app & document.
Technical Details
Message-ID: <B91C48DE.2F84%jbotwick@nc.rr.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!cyclone.tampabay.rr.com!news-post.tampabay.rr.com!twister.southeast.rr.com.POSTED!53ab2750!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bcce,fa354321608ab609,start
X-Google-Attributes: gid10bcce,public
X-Google-Thread: f635e,fa354321608ab609,start
X-Google-Attributes: gidf635e,public
X-Google-Thread: fd047,fa354321608ab609,start
X-Google-Attributes: gidfd047,public
X-Google-ArrivalTime: 2002-05-30 20:55:55 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!cyclone.tampabay.rr.com!news-post.tampabay.rr.com!twister.southeast.rr.com.POSTED!53ab2750!not-for-mail
User-Agent: Microsoft-Entourage/10.0.0.1309
Subject: How does codewarrior compile icon resources for x86?
From: Jason Botwick <jbotwick@nc.rr.com>
Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac,codewarrior.windows
Message-ID: <B91C48DE.2F84%jbotwick@nc.rr.com>
Mime-version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Lines: 18
Date: Fri, 31 May 2002 03:55:54 GMT
NNTP-Posting-Host: 24.25.5.129
X-Complaints-To: abuse@rr.com
X-Trace: twister.southeast.rr.com 1022817354 24.25.5.129 (Thu, 30 May 2002 23:55:54 EDT)
NNTP-Posting-Date: Thu, 30 May 2002 23:55:54 EDT
Organization: Road Runner - NC