home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!usc!news.cerf.net!benton.prepress.com!nuntius
- From: christopher m. knox <chris@benton.prepress.com>
- Subject: Re: Resource help?
- Message-ID: <1992Dec23.211340.19421@prepress.com>
- Sender: usenet@prepress.com (Usenet login)
- Nntp-Posting-Host: chris
- Organization: Pre-Press Technologies, Inc.
- X-Useragent: Nuntius v1.1b2
- References: <1h7hg5INNhmr@gap.caltech.edu>
- Date: Wed, 23 Dec 1992 21:13:40 GMT
- Lines: 25
-
- In article <1h7hg5INNhmr@gap.caltech.edu> Chris Michael Ward,
- chriswd@cco.caltech.edu writes:
- >I was wondering if someone could help me out. As a newtimer to Macintosh
- >programming, I am in the process of learning how to use resources. I'm
- >trying to get the data from a simple 'STR#' resource, but it doesn't
- >seem to be working correctly.
-
- Hi,
- 'GetIndString(str,strListID,n);' will return the nth string in the STR#
- resource
- with id strListID. N ranges from 1... number of strings. (see IM I p.468).
- To do anything more, like inserting strings, the following info might
- help:
- format of a STR# resource:
- n, number of strings (2 bytes)
- - m, length of string 1 (1 byte)
- - characters of string 1 (m bytes)
- ....
- - m, length of string n
- - characters of string n
-
- Happy Holidays, Chris
- chris knox, primary programmer, SpectreTouch?
-
- "Omne animal triste est post (or without) coitum" Umberto Eco
-