T.R | Title | User | Personal Name | Date | Lines |
---|
1476.1 | | SDSVAX::SWEENEY | I was focused when focus wasnt cool | Fri Sep 22 1989 09:45 | 12 |
| They are the one and the same. The defined interface for obtaining
command line arguments is the application "main" is called with argc
and argv. The defined interface for telling X run-time information
passed from the command line which invoked the application is to pass
the same argc and argv to "XtInitialize".
By the way, XtInitialize is an R2 format convenience routine for the R3
calls listed on page 2-130 of VMS DECwindows Toolkit Routines Reference
Manual (VMS 5.1) Not that I want to compel usage of the current
routines, but you ought to know that "XtInitialize" is not a current
routine.
|
1476.2 | Along the same lines | EXLIB::DLUGOSZ | Open foot, Insert Mouth | Fri Sep 22 1989 11:33 | 8 |
| While your on the subject (sort of at least)...I noticed a chapter
on the X Resource Manager in the V2 Programmers Update manual. Does
this imply that command line argument passing will be supported
at V2 on VMS (or is this wishful thinking)? I can't find any release
notes (other than for VMS 5.3) or I would have checked there first.
Ron
|
1476.3 | Just 'C' ?? | GSRC::WEST | Variables don't, Constants aren't | Fri Sep 22 1989 20:01 | 7 |
|
Also, Is this just for use with the C language ? I toyed with it
once with Ada with zero success.
-=> Jim <=-
|
1476.4 | C only (is there any other programming language? :-) ) | PSW::WINALSKI | Careful with that VAX, Eugene | Sat Sep 23 1989 14:06 | 10 |
| RE: .3
The main program for a C application is always a routine (C$MAIN, I think) in
the C RTL. The C RTL routine uses LIB$GET_FOREIGN to obtain the command line
builds argv and argc from that information, then calls the user's routine
main(). If you are using Ada or any language other than C for your main
program, none of this takes place.
--PSW
|
1476.5 | | QUARK::LIONEL | Free advice is worth every cent | Mon Sep 25 1989 20:58 | 12 |
| Re: .0
I can't see how you can do that because DCL won't let you specify parameters
to the RUN command.
Re: .1
So I've heard, Pat, but I've not seen any clear documentation as to what
should be used instead. And all of the examples use XTInitialize.
Steve
|
1476.6 | DO-IT-YOURSELF args ... | GSRC::WEST | Variables don't, Constants aren't | Tue Sep 26 1989 17:45 | 11 |
|
It should be possible to use LIB$GET_FOREIGN to get the command line and
then parse it yourself to build the ARGC and ARGV variables.
I haven't tried this approach yet, but I do not see any reason why it
should not work.
-=> Jim <=-
|