Path: utzoo!attcan!uunet!mailrus!accuvax.nwu.edu!anaxagoras!gumball!engber From: engber@gumball.ils.nwu.edu (Mike Engber) Newsgroups: comp.sys.mac.programmer Subject: How do you execute a CODE resource? Message-ID: <1348@anaxagoras.ils.nwu.edu> Date: 14 Aug 90 13:54:00 GMT References: <1990Aug14.003350.2055@vaxa.cc.uwa.oz.au> <1990Aug14.131735.21771@ux1.cso.uiuc.edu> Sender: news@anaxagoras.ils.nwu.edu Reply-To: engber@gumball (Mike Engber) Organization: The Institute for the Learning Sciences Lines: 12 Let's say you have a few CODE resources and you want to execute them (ala XCMDS in Hypercard). How do you do it? I can get as far as opening the resource file, getting handles to the CODE resources, but I don't know where to go from there? I have actually been able to do this from Macintosh Allegro Common Lisp because they provide the function, ff-call, which takes a CODE resource handle and executes it. But, I don't know how ff-call works or how I could accomplish this from C or Pascal. -ME