home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15465 < prev    next >
Encoding:
Internet Message Format  |  1992-11-07  |  1.5 KB

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