🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #24968

Re: answering some questions

#24968
From: john
Date: Sat, 14 Feb 1987 03:14
43 lines
2298 bytes
In article <8702120450.AA18858@ucbvax.Berkeley.EDU> 
	INFTVT1@HENTHT5.BITNET writes:
 >Hi guys,
 > 
 >I recently a lot of questions i know the answer of, so here they are:
 > 
     .....................................

 > 
 >   4) How to get Pexec to work:
 > 
 >      long Pexec(mode, ptr1, ptr2, ptr3)
 >      int mode;
 >      char *ptr1, *ptr2, *ptr;
 > 
 >      mode       function        description
 > 
 >        0        load and go     ptr1 = pathname to the program you want
 >                                        to run.
 >                                 ptr2 = Command tail (like the dialogbox
 >                                        when you invoke a .ttp file from
 >                                        the desktop).
 >                                 ptr3 = Environmentstring (only included
 >                                        for compatability with MS-DOS).
 > 

	...................................

 >                                          Sietze Roorda


  Sietze, if you are going to give people information that you "know", you
should finish the job and give them the correct information.  What you
mentioned above is by-the-book as far as most Atari-ST references go, but
it's WRONG.  A small wrong, but wrong never-the-less....

  The string you identify as ptr2 is -NOT- a simple null terminated string
as most people would think.  It's a Pascal style string.  The first byte
of the string -must- contain a count value indicating the length of the
string.  This is why so many people have problems getting Pexec to work
and why many of the examples given in manuals for how to pass a parameter
string to a sub-program fail...  The authors just haven't done their
homework...... :^)
Technical Details
Message-ID: <526@viper.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!dayton!viper!john
References: <8702120450.AA18858@ucbvax.Berkeley.EDU>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!dayton!viper!john
From: john@viper.UUCP
Newsgroups: comp.sys.atari.st
Subject: Re: answering some questions
Message-ID: <526@viper.UUCP>
Date: Fri, 13-Feb-87 22:14:51 EST
Article-I.D.: viper.526
Posted: Fri Feb 13 22:14:51 1987
Date-Received: Sun, 15-Feb-87 01:26:24 EST
References: <8702120450.AA18858@ucbvax.Berkeley.EDU>
Reply-To: john@viper.UUCP (John Stanley)
Organization: DynaSoft Systems
Lines: 43