Article View: comp.sys.mac.programmer.help
Article #76Re: ResEdit cannot calculate a TMPL
From: Clark S. Cox III
Date: Wed, 13 Sep 2000 00:00
Date: Wed, 13 Sep 2000 00:00
29 lines
1655 bytes
1655 bytes
Hado Hein <webuse.HH@gmx.ch> wrote: > Hi, ResEdit users out here ? > > I have a TMPL that drives me nuts. After some testing I fugured out the > following: > > 1) Do a TMPL with a simple list (LSTB/LSTE). Inside the the List there > are seven DWRDs. After creating a testres the res has a size of 14 > bytes. (7*2) Fine. > > 2) Append to the same template a P009 string. The resulting res has a > size of 24. (7*2 + 10) Fine. > > 3) Append to the same template a P064 string. The resulting res has a > size of 126. (7*2 + 10 + 65 = 89) Oops. 0x64 == 100 > Am I doing something wrong or colliding with some 2-byte script systems, > or what ? The numbers are in hexadecimal. P009 is 1 + 0x0A (10) bytes long P064 is 1 + 0x65 (101) bytes long 7*2 + 10 + 101 = 125 I guess that there's an extra byte in there for padding.
Technical Details
Message-ID:
<1egx2s8.zp71yq8k25f4N%clarkcox3@yahoo.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<1egxi3c.t2l3yyxgxh4N@p3e9ba929.dip.t-dialin.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10bcce,7a73254a892ee3e0,start
X-Google-Attributes: gid10bcce,public
X-Google-Thread: 101ec9,7a73254a892ee3e0,start
X-Google-Attributes: gid101ec9,public
From: clarkcox3@yahoo.com (Clark S. Cox III)
Subject: Re: ResEdit cannot calculate a TMPL
Date: 2000/09/13
Message-ID: <1egx2s8.zp71yq8k25f4N%clarkcox3@yahoo.com>
X-Deja-AN: 669451195
References: <1egxi3c.t2l3yyxgxh4N@p3e9ba929.dip.t-dialin.net>
X-Face: 4sx$YUe#v'|&_+SwB7*{hy1Rb,03L5DM_U)nbQ{gz$$G2WbyOuofM<?{]u5|2UVsx&b~@,Bcu
X-Trace: news1.atl 968895758 216.78.197.149 (Wed, 13 Sep 2000 21:42:38 EDT)
Organization: n/a
User-Agent: MacSOUP/2.4.6 (unregistered)
NNTP-Posting-Date: Wed, 13 Sep 2000 21:42:38 EDT
Newsgroups: comp.sys.mac.programmer.help,codewarrior.mac