🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #31893

Re: rsrc_load, etc.

#31893
From: Barnacle Wes
Date: Sun, 10 Apr 1988 06:31
41 lines
1819 bytes
In article <8804052209.AA25739@ucbvax.Berkeley.EDU>, 0ALEVI@POMONA.BITNET writes:
>   After getting a retcode of 0 from rsrc_load, I did an rsrc_gaddr
> and ended up with a retcode of 1.
> What does this mean?

From MWC 2.1.7 Lexicon (Sybex _Programmer's Guid to GEM_ concurs):

int rsrc_load(filename)
char *filename;
rsrc_load returns 0 if an error occurred, and a number greater than 0
if one did not.

int rsrc_gaddr(type, index, address)
int type, index;
char **address;
rsrc_gaddr returns 0 if an error occurred, and a number greater than 0
if one did not.

> Is the Abacus book 'Gem Programming Reference Guide' correct in saying
> that 0 is an error?

Yep.

> Somebody told me that he thought that this is incorrect.  He didn't sound
> completely sure though.
> Can anybody give me a definite answer?
> If so, what am I doing wrong?

Are you sure you have the correct filename for the resource file?  Did
you put the complete filename in, including the .RSC extension?  Have
you checked to make sure the RSC file hasn't been garbaged?

> -any help will be greatly appreciated.

Hope it did :-)

-- 
    /\              -  "Against Stupidity,  -    {backbones}!
   /\/\  .    /\    -  The Gods Themselves  -  utah-cs!utah-gr!
  /    \/ \/\/  \   -   Contend in Vain."   -  uplherc!sp7040!
 / U i n T e c h \  -       Schiller        -     obie!wes
Technical Details
Message-ID: <139@obie.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bloom-beacon!mit-eddie!rutgers!bellcore!tness7!petro!swrinde!ut-sally!utah-cs!utah-gr!uplherc!sp7040!obie!wes
References: <8804052209.AA25739@ucbvax.Berkeley.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!bloom-beacon!mit-eddie!rutgers!bellcore!tness7!petro!swrinde!ut-sally!utah-cs!utah-gr!uplherc!sp7040!obie!wes
From: wes@obie.UUCP (Barnacle Wes)
Newsgroups: comp.sys.atari.st
Subject: Re: rsrc_load, etc.
Message-ID: <139@obie.UUCP>
Date: 10 Apr 88 06:31:54 GMT
References: <8804052209.AA25739@ucbvax.Berkeley.EDU>
Organization: the Well of Souls
Lines: 41
Summary: rsrc_load info