🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #32339

Re: Resource file HELP

#32339
From: Shane Looker
Date: Mon, 19 Sep 1988 21:05
16 lines
1087 bytes
In article <MXAyfcy00Xc=MAOEQe@andrew.cmu.edu> 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..."
Technical Details
Message-ID: <693@mailrus.cc.umich.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!pyrdc!pyrnj!rutgers!mailrus!chianti!shane
References: <MXAyfcy00Xc=MAOEQe@andrew.cmu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <MXAyfcy00Xc=MAOEQe@andrew.cmu.edu>
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