Path: utzoo!attcan!uunet!pyrdc!pyrnj!rutgers!mailrus!chianti!shane
From: shane@chianti.cc.umich.edu (Shane Looker)
Newsgroups: comp.sys.mac
Subject: Re: Resource file HELP
Message-ID: <693@mailrus.cc.umich.edu>
Date: 19 Sep 88 21:05:17 GMT
References: 
Sender: usenet@mailrus.cc.umich.edu
Reply-To: shane@um.cc.umich.edu (Shane Looker)
Organization: University of Michigan Computing Center, Ann Arbor
Lines: 16

In article  sn0v+@andrew.cmu.edu (Shoichi Nakai) writes:
>   hte = GetIndResource((ResType)"TEXT", (int)256);
                                  ^    ^
  These should be single quotes.  Insead of "TEXT", you should have 'TEXT'.
The compiler is trying to push the address of the string "TEXT\0" onto the
stack instead of the four characters TEXT.

>
>Shoichi Nakai
>sn0v@andrew.cmu.edu

p.s.  You should post this to comp.sys.mac.programmer instead of comp.sys.mac.
 
Shane Looker
Shane Looker   |  Looker@um.cc.umich.edu
"Subtle as a chainsaw, lacking all the social graces..."