Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!midway!ux1.cso.uiuc.edu!ernie!bazyar From: bazyar@ernie (Jawaid Bazyar) Newsgroups: comp.sys.apple2 Subject: Re: I need a little assistance Message-ID: <1991Feb6.063132.19297@ux1.cso.uiuc.edu> Date: 6 Feb 91 06:31:32 GMT References: Sender: news@ux1.cso.uiuc.edu (News) Reply-To: bazyar@cs.uiuc.edu (Jawaid Bazyar) Organization: Mutation Testing Facility, University of Illinois Lines: 23 In article gt0t+@andrew.cmu.edu (Gregory Ross Thompson) writes: > > MyID = MMStartUp(); > STHandle = NewHandle((LongWord)0x100, MyID, 0xC005, NULL); > SoundStartUp(*STHandle); ^^^^^^^^^^^ SoundStartUp takes a WORD as a parameter, whereas dereferencing a handle defaults to a LONG pointer. Change the call to the following and you should be okay: SoundStartUp((word)*STHandle); This is Apple and Bytework's fault for neither one providing prototyped tool headers- with prototyped headers, the compiler would have flagged an error at this construct. There was some talk on GEnie or AOL about prototyped headers having been created- I'll check that out. -- Jawaid Bazyar | "I'm sure K&R have never heard of Mike." Senior/Computer Engineering | bazyar@cs.uiuc.edu | "That's okay. I'm sure Mike's never heard of K&R". Apple II Forever! | (discussion about Orca/C)