Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!oberon!pollux.usc.edu!kurtzman From: kurtzman@pollux.usc.edu (Stephen Kurtzman) Newsgroups: comp.sys.mac.hypercard Subject: Re: Hypercard & LSC C 3.0 Message-ID: <12943@oberon.USC.EDU> Date: 20 Oct 88 07:18:21 GMT References: Sender: news@oberon.USC.EDU Reply-To: kurtzman@pollux.usc.edu (Stephen Kurtzman) Organization: University of Southern California, Los Angeles, CA Lines: 11 In article wb1j+@andrew.cmu.edu (William M. Bumgarner) writes: >I'm writing several XCMD's that require using 'SendCardMessage'. I have >modelled the call after the format in Gary Bond's book (MySendCardMessage and >ToPStr). Everytime the XCMD excutes a SendCardMessage (even 'go next card'), >hypercard beeps and terminates execution of the XCMD... you are probably using a string constant. lsc changed the way it generated code resources between 2.15 and 3.0. Read the section entitled "Global data in code resources" on pages 84&85 in the lsc 3.0 User's manual. you will probably find that you need to save, setup, and restore R4 as demonstrated in this section. Good luck.