Path: utzoo!attcan!uunet!munnari!iand From: iand@munnari.oz (Ian Robert Dobson) Newsgroups: comp.sys.mac.programmer Subject: Re: Executing a code segement from Lightspeed Pascal? Message-ID: <2443@munnari.oz> Date: 6 Oct 88 01:47:07 GMT References: <8810051239.AA09466@decwrl.dec.com> Organization: Comp Sci, Melbourne Uni, Australia Lines: 21 > > I know that you have to be tricky in Pascal to do this, but what > am I missing? > Apple mentions in Inside Mac 1 that there is no way the Lisa Pascal compiler can call a routine pointed to by a ProcPtr. Probably the same problem exists with LightSpeed Pascal. Does anybody know a way around this with INLINEs? Apart from that, your translation of C to Pascal is incorrect. The C statement "if (rsrcH = GetResource('code',2000)" includes an assignment, NOT a equality comparison. This should be translated as: rsrcH := GetResource('code',2000); if rsrcH <> nil then .... Ian R. Dobson University of Melbourne munnari!iand