Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!rpi!uupsi!sunic!news.funet.fi!news.ajk.tele.fi!tkk.tele.fi!jopa From: jopa@tkk.tele.fi (Jorma Paananen TKK-tt) Newsgroups: comp.sys.mac.programmer Subject: GetNamedResource and cicn Message-ID: <1991Mar06.143904.23891@tkk.tele.fi> Date: 6 Mar 91 14:39:04 GMT Sender: @tkk.tele.fi Distribution: comp Organization: Telecom Finland, Research Centre, Helsinki Lines: 25 I have troubles with cicn resources. Compiler is THINK C 4.0.2. I created cicn with ResEdit 2.0b2, both color and b&w version of cicn. Following code works ok for ICONs aIconHandle = GetIcon (iconID); PlotIcon (&aRect, aIconHandle); aIconHandle = GetNamedResource ('ICON', iconNamePstr); PlotIcon (&aRect, aIconHandle); following code works for cicns, color or b&w. aCIconHandle = GetCIcon (iconID); PlotCIcon (&aRect, aCIconHandle); but why doesn't this work (plots only garbage) when run in Mac with color, when run in Mac with b&w screen, the b&w version of the cicn plots ok. aCIconHandle = (CIconHandle) GetNamedResource ('cicn', iconNamePstr); PlotCIcon (&aRect, aCIconHandle); Jorma Paananen, jopa@tkk.tele.fi