TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Jason Meaden
from: James Mckenzie
date: 1995-05-27 19:37:54
subject: DosExecPgm

Hello Jason!

17 May 95 10:37, Jason Meaden wrote to All:

 JM> G'Day All,

 JM>     cin.get(Args, 10, '\n');

Right here.  The entire line will be read in as one arguement.  This, from
what I understand, is not how OS/2, Windows nor DOS pass arguements to
their program, but rather as an array of pointers to strings.

 JM> What is *does* do is say that there is a NUL argument for 'Arg
 JM> 1', it shows whatever input the user passes as 'Arg 2' on ONE
 JM> line, then it shows garbage characters as 'Arg 3'.  I'm sure I
 JM> have missed something obvious.

Which arg1 is a NUL, arg2 is the string that the user inputted as
arguments, and arg3 is junk that the program read out of uninitialized
memory.

 JM> Yeah, I've tested 'hello.exe' on the command line, and that works
 JM> fine.  I am attempting to compile it using IBM CSet++ 2.1

It will.  Arguements will be parsed correctly.

James

--- GoldED/2 2.50.B1016+
* Origin: OS/2 Support * Your place for OS/2 information and Files (6:760/13)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 760/13 6 270/101 105/103 42 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.