Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!oliveb!apple!well!brecher From: brecher@well.UUCP (Steve Brecher) Newsgroups: comp.sys.mac.programmer Subject: Re: help with sublaunching Message-ID: <11509@well.UUCP> Date: 4 May 89 01:59:47 GMT References: <9410@j.cc.purdue.edu> Reply-To: brecher@well.UUCP (Steve Brecher) Distribution: usa Organization: Software Supply, Sunnyvale, CA Lines: 46 In article <9410@j.cc.purdue.edu>, aib@j.cc.purdue.edu (coleman) writes: > I am having major problems with sublaunching. Everytime I try it, > I get a system beep, but it exits from there without returning > an error code. This was copied mostly from tech note # 126. Any > help would be greatly appreciated. > > Source is as follows : > > ... > > pascal OSErr LaunchIt( pLnch) /* < 0 means error */ > pLaunchStruct pLnch ; > { > asm { > MOVE.L (A7)+,A0 > _Launch > MOVE.W D0,(A7) ; since it MAY return */ > } > } > > ... In technote 126 LaunchIt is declared as an inline routine; that means the compiler will generate the code at the place where LaunchIt is called. The MPC C syntax = {