Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!usc!orion.oac.uci.edu!ucivax!bonnie.ics.uci.edu!jimmys From: jimmys@bonnie.ics.uci.edu (Jimmy Shaw) Newsgroups: comp.sys.apple2 Subject: Re: Orca/C Bug? Message-ID: <27D78C4E.9734@ics.uci.edu> Date: 8 Mar 91 13:06:22 GMT References: <9103081247.AA24460@apple.com> Reply-To: jimmys@ics.uci.edu (Jimmy Shaw) Organization: UC Irvine Department of ICS Lines: 45 Nntp-Posting-Host: bonnie.ics.uci.edu Subject: Launching a Sys16 application from a Orca/C Program -------- I am currently trying to write a program in Orca/C that will launch anan other program, namely Finder, Wings, ProSel 16, etc. The program that I am attempting to write will be a Password protection type program, that will prompt the user to enter the password. Once the correct password has been entered, then my program will launch the REAL program selector/manager. So far, I have successfully written the Password part, but for the life of me, I can't find any reference in the Orca/C manual, nor the Tool box refs Vol I, II, regarding launching another application. The Apple IIgs _Programmer' s Intro to the Apple IIgs_ briefly described the procedure, but since Hodge-Podge didn't have anything to do with it, they didn't provide any exact codes in C. (I tried looking the the Tool Ref II, in the Standard File Operation Tool Set, but that only covers load and save, NOT launch.) The only mention of it that even comes to what I want is in the Orca/C manual, where I am told to use System in the Libraries #include int system(char *command); I have tried using System("1/system/Finder"); But to my dismay, it works well under the shell, as an EXE file, but when I changed the file to a Sys16, then it won't launch Finder. (I did remember to turn the debugging option off, when making a Sys16 file.) I would be eternally (well, maybe not THAT long :) ) greatful if someone could provide me with the EXACT code for launching a SYS16 program from Orca/C. Jimmy Shaw