home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!spool.mu.edu!hri.com!enterpoop.mit.edu!eru.mt.luth.se!kth.se!hemul.nada.kth.se!d88-jwa
- From: d88-jwa@hemul.nada.kth.se (Jon Wtte)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Reading STR#
- Keywords: str# mac pascal c resource resedit
- Message-ID: <1992Dec14.161515.6622@kth.se>
- Date: 14 Dec 92 16:15:15 GMT
- References: <1992Dec13.211015.4725@dartvax.dartmouth.edu>
- Sender: usenet@kth.se (Usenet)
- Organization: Royal Institute of Technology, Stockholm, Sweden
- Lines: 23
- Nntp-Posting-Host: hemul.nada.kth.se
-
- In <1992Dec13.211015.4725@dartvax.dartmouth.edu> smsilver@coos.dartmouth.edu (Scott M. Silver) writes:
-
- >How do I read STR#'s (individual strings) from my resource in pascal.
- > I want to be able to get ones of a length bigger that 255...or somewhat
- > unlimited ast the case may be (<32k). I tried using GetIndString, but
- > that seems only to allow strings of up to 255 chars...Thanks in advance.
-
- You might want to break your lines every 80 characters or so...
-
- Anyway, the format of a STR# is short-string-count, followed by
- Pascal strings of the form length-byte data. A length byte cannot
- indicate more than 255 characters, so there you are. If you need
- larger strings, you probably won't need a whole lot of them, so
- you can store them in individual TEXT resources instead.
-
- Cheers,
-
- / h+
-
- --
- -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
-
- This article printed on 100% recycled electrons.
-