CODE and XFCN resources

Ron rbarber at yhb.att.ne.jp
Fri Aug 29 19:21:01 EDT 2003


Thanks a lot, Brian

I looked at the Rev docs but didn't think of the MC (which I don't use)
docs. You were right, they are in the 'Read Me' for 2.4, included below. I
couldn't get 1300 to work but 2400 did. I hope there is not problem with
that. I can now load both CODE res. id 1200, and id 2400, stored in the res
fork of the same stack.

Thanks
Ron

> Two possibilities:
> 
> 1) See what you renumbered the resource to: MetaCard loads certain
> resource IDs depending on the platform- this is documented in the
> README around version 2.4. I would try 1200 and 1300 - two numbers that
> "mod" to the same thing.

>From the MC Read Me:
Multiple externals are now supported on Win32 and MacOS systems.  On
Win32, just set the externals property of a stack to a multiline list
of the DLLs to load.  On MacOS systems, multiple CODE resources can be
included in a stack file.  The set that will be loaded for a given
platform depends on the ids of the resources.  The value of the id mod
3 is used to select the externals for a given platform as shown in the
following table:
0 - PPC
1 - 68K
2 - Carbon

 
> 2) If that doesn't help, you could store them in separate stacks and
> load with "start using"
> 
> HTH
> 
> Brian
> 
>> Hi
>> 
>> I've had a friend compile some code for me that works fine as an
>> external.
>> He made it a CODE resource with id 1200. That resource runs in both OS
>> 9 and
>> X. However, in OS 9 I added the Valentina vxcmd, also with CODE res id
>> 1200.
>> To accomodate this I renumbered the other CODE and it now refuses to
>> run.
>> 
>> In the xfcn/cmd world, renumbering res id did not usually result in
>> problems. Is it different for CODE res? How does one add more than one
>> CODE
>> res on OS 9? Should I have it recompiled as an xfcn or as a CODE res
>> with a
>> different id?
>> 
>> Obviously, I'm ignorant in this area and would appreciate some
>> enlightenment.
>> 
>> Thanks
>> Ron
>> 
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>> 
>> 
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 



More information about the use-livecode mailing list