HDTenEightyP/NetNews huggingface dataset:
From: howard@netcom.com (Howard Berkey)
Subject: THINK C linker makes me sad
Date: Tue, 08 Sep 92 08:16:36 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Distribution: usa

So I was writing this really small, simple app. (a mac version of xclock,
just for fun.)  It was only 3k.  Then I added a call to sprintf().  It 
exploded the program to 22k.

Please, no flames for this... I LOVE the THINK C environment, and I know
that the 'open letter to symmantec' thread was months ago, but I do REALLY
WISH that the THINK C linker (or loader) would recognize discrete blocks of 
code at the function (rather than file) level.  
	While I'm at it some revision control system would be nice too...

grrr.....

ok I'm better now.

-Howard

-- 
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Howard Berkey						howard@netcom.com
"Jesus Christ, How many people does it TAKE to kill the President?"
		-John Dillinger, in _Illuminatus!_
Newsgroups: comp.sys.mac.programmer
From: leonardr@netcom.com (Leonard Rosenthol)
Subject: Re: Idea for New Program
Date: Tue, 15 Sep 92 16:22:47 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 

In article <BuLrCA.7qJ@well.sf.ca.us> vito@well.sf.ca.us (Andris Paul Vitols) writes:
>
>I'd like to see a shareware program that creates a floating
>pallete of icons that represent the currently running
>applications.  I would like this pallete to have these 2
>preferences options: 1.) User can pick what size icons
>are in the pallete (Small Icon or Large Icon.) 2.) User can
>have the floating pallete always be the front-most window.
>
	This was originally done at the 1989 MacHack by Mike Kahl (or Think C) 
fame in a hack called "Layers", but has become most popular in Rick Holzgrafe's
(bet I spelled that wrong ;() ApplIcon which is a very nice (System 7 only,
though) product and should server your needs.

-- 
-----------------------------------------------------------------------------
Leonard Rosenthol			Internet: 	leonardr@netcom.com
Director of Advanced Technology		AppleLink:	MACgician
Aladdin Systems, Inc.			GEnie:		MACgician
From: hp48sx@wupost.wustl.edu (HP48SX Archive Maintainer)
Newsgroups: comp.sys.mac.programmer
Subject: Worldwide software
Date: 13 Sep 1992 08:01:54 -0500
Organization: Washington University in Saint Louis, MO USA
NNTP-Posting-Host: wuarchive.wustl.edu

A friend of mine is having some problems, as he is typesetting stuff in
foreign languages, and there are special accented chgaracters in
Turkish/polish and other langiages, that are not found in the ISO Latin
1 character set.  Currently I have made him use Times and Helvetica
only, and then use the foreign system software to get the character
sets. On the developer CD he can find most systems, and all the system 7
do have a TrueType font with the wanted characters. I am not sure if
there is an easier way to do this ?  This way the comany who does the
printouts has to have the foreign system as well.

I just looked at Localizer 3.8, and the installer scripts that comes
with it on the developer CD. And it seems that the Turkish script
installs some standard resources, a new systemfont with characters
remapped, and then uses the Roman script!!! I was under the impression
that you had to change script system when you where not using Latin1.
Things designed/written under turkish system will show up with the
special codes replaced by 2-char combinations under a plain Roman script
(danish or US).  So what is going on ? is the installer scripts on this
CD outdated ? How can I handle such a situation ?
-- 
Povl H. Pedersen             hp48sx@wuarchive.wustl.edu
HP48sx archive maintainer

All Opinions (C) Copyright the Intergalactic Thought Association
From: jpugh@apple.com (Jon Pugh)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Closing AppleTalk
Date: 7 Sep 92 08:09:35 GMT
Followup-To: comp.sys.mac.programmer
Organization: Apple Computer, Inc.

In article <jpugh-050992190641@90.20.3.218>, jpugh@apple.com (Jon Pugh)
wrote:
> 
> I'm tired of using the Chooser to turn Appletalk on and off on my PowerBook
> (way too may OK buttons), so I tried writing a simple FKEY to toggle
> AppleTalk:
> 
> IF IsMPPOpen THEN
>    err := MPPClose
> ELSE
>    err := MPPOpen;
> 
> This seems to work, but someone keeps calling MPPOpen after I close it and
> everything (like File Sharing) starts back up.
> 
> Does anyone know what else I need to do to turn AppleTalk off?  What does
> the Chooser do?

Well, I was slightly incorrect in my first posting, but I understand why
now.  My simple FKEY does, in fact, toggle AppleTalk on and off and will be
an essential PowerBook tool, assuming nothing adverse shakes out in the
beta test phase.  ;)

The trouble appears when I open the Chooser to check if Appletalk is off. 
The Chooser saves the state of AppleTalk and sets it to that state when the
Chooser is opened.  In addition, if you turn Appletalk off in the Chooser,
calling MPPOpen fails with -98 (Port Not Configured - a PRAM error).

So, it appears that I need to find out what chunks of PRAM I need to set to
either make AT stay off or allow it to be turned on.

Any clues?

This behavior is all right though.  This way AppleTalk always stays on when
booting regardless of the state the FKEY set, which is desired.  I wouldnUt
mind keeping that behavior.  I just like to know whatUs really going on.

Yeah, like they tell me whatUs going on...

Jon
Xref: sparky comp.sys.mac.programmer:15056 comp.sys.mac.misc:16094
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.misc
Subject: Opinions on THINK Reference?
From: psweeney@miavx1.acs.muohio.edu
Date: 6 Sep 92 15:22:13 -0500
Organization: Miami University Academic Computer Service"

I'm a beginning Mac programmer.

Is Symantec's THINK Reference worth it?  It doesn't support
IM VI, and I have heard of no upgrades.  However, I have
seen a friend's copy, and it looks pretty useful.

I'm currently using THINK C 5.0.2.

Any response is welcome.

Peter Sweeney
psweeney@miavx1.acs.muohio.edu

Newsgroups: comp.sys.mac.programmer
From: bpb9204@tamsun.tamu.edu (Brent)
Subject: Re: EditText items larger than 255 bytes?
Organization: Texas A&M Univ., Inc.
Date: Thu, 10 Sep 1992 23:02:40 GMT

bpb9204@tamsun.tamu.edu (Brent) writes:
|
|Now I have a question.  When you make a new TERecord, it is 32k in size,
|right?

I apologize; my brain tries really hard sometimes to take a break.
I've used TextEdit stuff before and I don't know why I started thinking
like the above...  No, the TERec is NOT 32k.  

-Brent

p.s. please don't email me any more replies to the above blunder.
From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Is a resource fork already open?
Date: 9 Sep 92 15:27:51 +1200
Followup-To: comp.sys.mac.programmer
Organization: University of Waikato, Hamilton, New Zealand

In article <ksand-080992093511@wintermute.apple.com>, ksand@apple.com (Kent Sandvik) writes:
> The canonical way is to check if the resource file is open is to
> call PBGetCatInfo and check bit 2 of the ioFilAttrib field. Ugh.

Yeah, but that doesn't tell if you if it was opened by the Resource Manager.
All it tells you is that someone has used OpenRF.

Lawrence D'Oliveiro                       fone: +64-7-856-2889
Computer Services Dept                     fax: +64-7-838-4066
University of Waikato            electric mail: ldo@waikato.ac.nz
Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
From: rc05@gte.com (Ramesh Chandak)
Newsgroups: comp.sys.mac.programmer
Subject: Dealing with PICTs in an application built with THINK C
Date: 5 Sep 92 03:23:42 GMT
Organization: GTE Laboratories Incorporated, Waltham MA

I developed the interface using AppMaker and then generated the THINK C
code for it.  Then I copied couple of PICTs from the scrapbook onto
one of the windows within the application.  What I want to do is very
simple : you click on PICT 1, the application should open WINDOW 1.
When you click on PICT2, the application should open WINDOW 2. However,
even from the source code level, I'm not able to define PICT 1 and 2
as separate from the WINDOW.  

At the source code level,  there is a procedure called MOUSEIN which
acts for the WINDOW.  So I click on any place on the window, it goes
to WINDOW 1.  

ANy ideas on how I can achieve PICT 1 -> WINDOW 1 and PICT 2 -> WINDOW 2
functionality.  ANy public domain source code available that might help ?
Any pointers / references / suggestions will be greatly appreciated.  Thanx
much in advance.

- Ramesh M. Chandak
From: tmaehl@vax1.umkc.edu
Newsgroups: comp.sys.mac.programmer
Subject: simulating page-flipping via cluts
Date: 11 Sep 92 09:03:44 GMT
 <18ja83INNk53@agate.berkeley.edu> <1992Sep10.182147.25618@hobbes.kzoo.edu>
Organization: University of Missouri - Kansas City

In article <1992Sep10.182147.25618@hobbes.kzoo.edu>, 
k044477@hobbes.kzoo.edu (Jamie R. McCarthy) writes:

> How many games do you know that really, really _need_ 256 colors--not
> 254 or 255 but 256?  If you're clut-flipping to simulate page-flipping,
> OK;  if you're writing for a 2-bit-deep screen, I can see that.  Most
> games get along fine with 254 colors.
> 

Two questions: How do you simulate page-flipping with clut-flipping??
Set one clut to all black and draw with it and then flip to the clut
with the proper colors? I'm not sure I see where this gains you
anything. Anyone care to explain in detail??

And second: Wouldn't this fail to accomplish anything at all on
a direct color screen, or am I *completely* misunderstanding (a
distinct possibility.)

Jonathan (tmaehl@vax1.umkc.edu)
From: lari@strauss.cs.unc.edu (Humayun Lari)
Newsgroups: comp.sys.mac.programmer
Subject: Re: GetColor bug (was RE: NON-QUICKDRAW GAMES)
Date: 12 Sep 92 20:31:09 GMT
Organization: The University of North Carolina at Chapel Hill

In article <1992Sep11.005924.21955@dartvax.dartmouth.edu> Joe.Francis@dartmouth.edu (Joe Francis) writes:
>In article <28629@vedge.UUCP>
>brad@vedge.UUCP (Brad Fowlow) writes:
>> Any thoughts on a PM-friendly way to get back the "normal"
>> system palette when my last paletted window dies,
>> just as happens when the app quits?
>I'm hopeful that someone else will post a more elegant way, but one way
>to do what you want is to detect when you are closing your only window,
>EraseRect it's portRect, and set it's Palette to the system palette,
>*then* close the window.  

How about this: close the window and then create a new window offscreen (i.e.
with coordinates like 32000, 32000, 32010, 32010) Set its palette to the system
palette, and the Palette Manager should do its job... or is it smart enough to
check whether the window is onscreen? I'd test this, but I'm at school.

BTW, shouldn't the palette be a pure black-and-white palette, so as to be nice
to the applications in the background? Or will this not work?

Humayun Lari
(lari@cs.unc.edu)
From: ksand@apple.com (Kent Sandvik)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Opinions on THINK Reference?
Date: 9 Sep 92 00:19:41 GMT
Followup-To: comp.sys.mac.programmer,comp.sys.mac.misc
Organization: Apple

In article <6crnl3b.howard@netcom.com>, howard@netcom.com (Howard Berkey)
wrote:
> >Kent
> >"I would rather have a thousands idiots attacking my position, than
> >have one idiot helping to defend it."	[Paraphrased from Voltaire]
> 
> sorry man, this idiot had to agree w/you.  Maybe 1k idiots will wait for the
> sys 7.5.5/pink/newtonOS version of the reference.

True, idiots are always waiting for something better, like a faster
Mac, or a better programming language :-).

Anyway, back to our daily schedule.

Kent

"I would rather have a thousands idiots attacking my position, than
have one idiot helping to defend it."	[Paraphrased from Voltaire]
-------------------
Kent Sandvik (UUCP: ....!apple!ksand; INTERNET: ksand@apple.com)
DISCLAIMER: Private activities on the Net.
From: jedavis@salsa.engr.ucdavis.edu (James Davis)
Newsgroups: comp.sys.mac.programmer
Subject: How to swap KCHR the sys is using ?
Date: 8 Sep 92 15:05:56 GMT
Organization: College of Engineering - University of California - Davis

I need to temporarily replace the system KCHR mapping with one of my
own.  I know its possible since the Keyboard Control Panel does essentially
what I want.  It seems the script manager should do what I want,
through the KeyScript() function.  But I cant seem to enable the SM.
When I call GetEnvirons(smEnabled) I get a 0 returned.  So how do
I turn on the SM?  Also IM seems to say that KeyScript() will function
only on the KCHR resources that belong to a script.  How do I make
sure my custom KCHR belongs to the script system?
All this is in refrence to a US system.  Im using 7.0.1 on a IIci, but
my app needs to run under sys6 as well. Writing with Think C 5.x

Any pointers to a piece of sample code that swaps around KCHRs
or otherwise use the script manager appreciated.  I looked through
Apple DTS Sample code, but didnt see anything, might have missed it
though.

Thanks for any info,
James Davis : University California : jedavis@ucdavis.edu
Newsgroups: comp.sys.mac.programmer
From: us277614@mmm.serc.3m.com (Dave T. Berquist)
Subject: Re: LockPixels() before every CopyBits()?
Organization: 3M Company
Date: Sun, 13 Sep 92 22:39:55 GMT

In article <1992Sep12.232233.4076@desire.wright.edu> jmatthews@desire.wright.edu writes:
>> Assuming that the address is okay, I noticed that we don't call
>> LockPixels() before CopyBits().  After inserting calls to LockPixels()
>> and UnlockPixels(), it looks something like this:
>> 
>> 	HLock((Handle) pixHandle1);
>> 	HLock((Handle) pixHandle2);
>> 	LockPixels(pixHandle1);
>> 	LockPixels(pixHandle2);
>> 	CopyBits((BitMap *)*pixHandle1, (BitMap *)*pixHandle2, ...);
>> 	UnlockPixels(pixHandle2);
>> 	UnlockPixels(pixHandle1);
>> 	HUnlock((Handle) pixHandle2);
>> 	HUnlock((Handle) pixHandle1);
>> 
>> Now this seems to be a bit much for every call to CopyBits.
>
>LockPixels and UnlockPixels should be suffucient; the HLock and
>HUnlock aren't needed. I think you may need to be calling
>GetGWorldPixMap instead of getting the pixMap directly (except
>under ColorQD version 1.2 where it's broken (see the Q & A stack)).
>
>IM VI just says use GetGWorldPixMap without much explanation. I've
>imagined this makes a difference with GWorlds on graphic accelerators
>or temporary memory, but I don't really know.
>
>Any thoughts?
>

GetGWorldPixMap should be used if system 7 is available, otherwise get
the pixmap right from the gworld for system 6.  (GetGWorldPixMap does
not work under system 6 - I know, I have tried it).

- Dave Berquist
From: werner@soe.berkeley.edu (John Werner)
Newsgroups: comp.sys.mac.programmer
Subject: Re:  MacApp News group?
Followup-To: comp.sys.mac.programmer
Date: 10 Sep 1992 16:12:51 GMT
Organization: UC Berkeley School of Education
Distribution: world
NNTP-Posting-Host: tol7mac19.soe.berkeley.edu

In article <1992Sep10.150727.4240@terminator.cc.umich.edu>,
krk@itl.itd.umich.edu (Kenneth Knight) wrote:
> Some time back a RFD for a MacApp (and general-purpose object programming for
> the Mac) newsgroup was suggested. I haven't seen anything since that message
> on comp.sys.mac.announce. 
> [...] there are mailing lists that can be subscribed too

At various times it has been suggested that the MacApp3Tech$ mailing list
be gatewayed into a Usenet group, so posts to the group get sent to the
mailing list and vice-versa.  The person at Apple who manages the
AppleLink/Internet gateway has even offered to set up the newsgroup
gateway, but he doesn't want to deal with all the Usenet politics involved
in getting the group approved.

The way this would work is that the group would be "moderated".  The
moderator address would simply be the mailing list address at Apple, and
messages sent there would automatically be posted back to Usenet.

How many people would be interested in such a group?  I would; I subscribe
to MacApp3Tech$ now, but I'd rather read it with a newsreader than as
individual email messages.  Would anyone be interested enough to deal with
running the Usenet vote?  I could do it if I had to, but I'd rather not.


--
John Werner                         werner@soe.berkeley.edu
UC Berkeley School of Education     510-642-9651
From: quang@YOSEMITE.CSUFRESNO.EDU (Quang Ngo)
Newsgroups: comp.sys.mac.programmer
Subject: Problem in C, please help!
Date: 11 Sep 92 21:24:34 GMT


I'm trying to write a simple keyboard driver that does the following:

  * It adds 1 to every character the user types, i.e., if the user types:
    'Hello', what the user will see is: 'Ifmmp'.  In general, a -> b,
    c -> d, s -> t, etc.
    
  * When the driver is running, no matter what application the user is
    using the driver still works with that application.  This way, if
    , for instance, the user is using MS Word, when he types 'Hello',
    what he'll get is 'Ifmmp'.

Here's a segment of the code I'm trying:

HandleEvent()
{
	if (gWNEImplemented)
		WaitNextEvent(everyEvent, &gTheEvent, SLEEP,
NIL_MOUSE_REGION);
	else {
		SystemTask();
		GetNextEvent(everyEvent, &gTheEvent);
	}
	
	switch (gTheEvent.what) {
		case nullEvent:
			break;
		case keyDown:
			theChar = gTheEvent.message & charCodeMask;
			theChar++;
			/*printf("%c\n", theChar);*/
			break;
		case mouseDown:
			gDone = TRUE;
			break;
	}
}

Question:
  How do I store the value in theChar++ back to the gTheEvent.message?
  Did I miss something?

Thanks in advance.

Please email your help to
-Quang (quang@yosemite.csufresno.edu)
Newsgroups: comp.sys.mac.programmer
From: robichau@lambda.msfc.nasa.gov (Paul Robichaux)
Subject: Re: Game Techniques (was: NON-QUICKDRAW GAMES)
Reply-To: robichau@lambda.msfc.nasa.gov
Organization: New Technology, Inc.
Date: Wed, 9 Sep 1992 15:31:23 GMT

In <D88-JWA.92Sep9134048@musta.nada.kth.se> d88-jwa@musta.nada.kth.se (Jon W{tte) writes:

[ deletia - 4 things to do for fast drawing ]

>However, your timings are off. If your mac has color, it's
>a 030 mac

Nope. The original Mac II and the original Mac LC were both '020 machines.

-- 
Paul Robichaux, KD4JZG          | I shouldn't bitch / I shouldn't cry
robichau@lambda.msfc.nasa.gov   | I'd start a revolution but I don't have time.


Newsgroups: comp.sys.mac.programmer
From: a-giles@uchicago.edu (Aaron Giles)
Subject: Re: JPEG <-> JFIF with QT.
Reply-To: a-giles@uchicago.edu
Organization: University of Chicago High Energy Physics
	<1992Sep4.173121.10616@waikato.ac.nz> <BuI2pL.92z.2@cs.cmu.edu>
Date: Sun, 13 Sep 1992 23:50:34 GMT

In article <BuI2pL.92z.2@cs.cmu.edu> tgl+@cs.cmu.edu (Tom Lane) writes:

> mackid@engin.umich.edu (Mike Neil) says:
> > the data portion that is returned from a
> > CompressImage call is in the JFIF format (Someone give the QT guys another
> > cookie).  So basically you can read a JFIF file into memory pass it into
> > the DecompressImage call (You will need to make a Info block by hand).
> > and you will get a decompressed image out.  Very Cool.

> I don't recall offhand whether QT makes a true JFIF file (complete with JFIF
> marker) or just a "raw JPEG" file.  Either way, though, the information is
> compatible with non-Mac JFIF/JPEG programs.  The JFIF marker is considered
> optional by most non-Mac decoders; it really just certifies that the file
> adheres to the JFIF conventions about colorspace.

Actually, QT *does* include the JFIF marker and in fact produces a
perfectly acceptable JFIF output, not simply a JFIF-compatible output.

Aaron Giles
a-giles@uchicago.edu
From: chris@benton.prepress.com (christopher m. knox)
Newsgroups: comp.sys.mac.programmer
Subject: Re: C problem using Rects
Date: 9 Sep 92 19:28:42 GMT
Organization: Pre-Press Technologies, Inc.
X-Useragent: Nuntius v1.1b2

Subject: C problem using Rects
From: David A. Denboer, umdenbo0@ccu.umanitoba.ca
In article <1992Sep7.041900.24489@ccu.umanitoba.ca> David A. Denboer,
umdenbo0@ccu.umanitoba.ca writes:
>For some stupid reason, this followinf piece of code does not compile
anymore.
>        OffsetRect(&dispBounds, -dispBounds.left, -dispBounds.top);
>
>In one project, it compiles fine.
>If I move the code to another project, it will not compile again.  It
says
>"Syntax Error", and my C compiler does not seem to know what a Rect
is?!!!

If you're using Think C, check whether MacHeaders is included. It may be
in the prefix in one of your projects but not in the other. If that
fails, include "Quickdraw.h" and try to compile.
If THAT fails, consider another compiler... (haha)
chris knox "Omne animal triste est post (or without) coitum"
Xref: sparky comp.sys.mac.programmer:15528 comp.sys.mac.system:11891
From: dwb@apple.com (David W. Berry)
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.system
Subject: Re: Does anyone recognize _Jackson?
Date: 15 Sep 92 22:24:07 GMT
Organization: Greenwing Enterprises
X-UserAgent: Nuntius v1.1

In article <lbaaheINNmja@coltexo.cs.utexas.edu> Steve Anthony Mariotti,
stevem@cs.utexas.edu writes:
>I'm guessing that this is the same trap that TMON Pro referred to as
>_JacksonPollock.  I know that it's related to Color QuickDraw, but I 
>didn't bother reading through the code.
_JacksonPollock is a vectored trap that was added for 32-bit QuickDraw.

>
>A similar question to yours:  what the hell is _Bass?  I was getting some
>crashes when a program I was fixing thrashed thePort, and my stack crawl
>led me through some code low in memory (very low, like $00001000 or so)
that
>called _Bass.
Since Bass was the code name for the spline font project, I assume that
_Bass is an internal trap implementing the spline fonts.
From: triantos@acsu.buffalo.edu (Nick B Triantos)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Help needed translating from MPW to THINK C ...
Date: 7 Sep 92 17:31:16 GMT
Distribution: comp
Organization: The University at Buffalo
Originator: triantos@autarch.acsu.buffalo.edu

I recently write:

>I'm trying to compile the source to Windows 3 (Name correct?), the program that
>lets me show everyone that my Mac can run Windows (Check it out before you
>flame me).  Anyway, I'm trying to compile it in THINK, and, after some minor
>changes, I'm getting errors caused by the line below.  It's used as follows:

>extern void _DataInit();

Well anyway, I deleted the line, and the reference to it about 5 lines below,
and, after setting THINK to always use 4-byte ints, it compiles.  I copied all
of the resources except the CODEs from the included app to the .rsrc file for
my project, and now when I run it, from inside the debugger, outside the
debugger, or as a built application, all I get is a small dialog saying
something like Microsoft Windows 3.0 with an OK button.  Then it exits.

Does anyone else have any further ideas, maybe?

Thanks,
-Nick
--
Nick Triantos    internet: triantos@acsu.buffalo.edu
                 AOL:      Triantos
"Scientists tell us that the fastest animal on earth, with a top speed of
120 ft/sec, is a cow that has been dropped out of a helicopter." - Dave Barry
From: wombat@claris.com (Scott Lindsey)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Drawing Icons in Modal Dialogs?
Date: 9 Sep 92 23:21:36 GMT
Organization: Claris Corporation, Vancouver WA
Wombat: yes
Number: 64962

In article <1992Sep8.170930.24746@utkux1.utk.edu>, danny@utkux1.utk.edu (Danny W. McCampbell) writes:
> 
> Hi.  I have a modal dialog that I want to draw an ICON resource
> in.  The problem I have is I am getting the resource from an
> ICN# resource.  How can I draw this ICN# resource as an ICON
> resource into a Modal Dialog?  Any ideas would be greatly appreciated.

Try

    GetDItem(dlog, Item, &IType, &IHdl, &IRect);
    ReleaseResource(IHdl);
    IHdl = GetResource('ICN#', id);
    SetDItem(dlog, Item, IType, IHdl, &IRect);

Since an ICON resource is a proper prefix of an ICN#, you shouldn't have any
problems.

--
Scott Lindsey <wombat@claris.com>
Xref: sparky comp.sys.mac.programmer:15121 comp.sys.mac.misc:16149