home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / programm / 19800 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  1.4 KB

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