home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!rutgers!cbmvax!cbmehq!cbmger!peterk
- From: peterk@cbmger.de.so.commodore.com (Dr Peter Kittel Germany)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: running segments from within an application
- Message-ID: <10018@cbmger.de.so.commodore.com>
- Date: 6 Nov 92 07:42:26 GMT
- References: <9211050408.AA24272@mackay.mpce.mq.edu.au> <36744@cbmvax.commodore.com>
- Reply-To: peterk@cbmger.de.so.commodore.com (Dr Peter Kittel Germany)
- Organization: Commodore Germany
- Lines: 19
-
- In article <36744@cbmvax.commodore.com> jesup@cbmvax.commodore.com (Randell Jesup) writes:
- >s3007048@mackay.mpce.mq.edu.au writes:
- >>I need to know how to pass parameters to segements run from within an
- >>application. I know about RunSeg() and LoadSeg(), and i've thought
- >>about using Execute()...
- >
- > I think you mean RunCommand(). RunCommand() is the best way to
- >pass arguments to a seglist (program) you loaded. In fact, it's the only
- >really safe way. The problem is that there are two separate ways in which
- >arguments are passed (well actually 3): 1) pointer to string in a0, length in
- >d0, string usually has a \n in it at the end. 2) as buffered input on the
- >input filehandle (RunCommand does this for you). 3) via Set/GetArguments()
- >(also done for you by RunCommand).
-
- And how about 4) via a normal file in RAM DISK: ?
-
- --
- Best regards, Dr. Peter Kittel // E-Mail to \\ Only my personal opinions...
- Commodore Frankfurt, Germany \X/ {uunet|pyramid|rutgers}!cbmvax!cbmger!peterk
-