From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b621f37fff3eb449,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-02-06 22:54:50 PST Path: nntp.gmd.de!newsserver.jvnc.net!howland.reston.ans.net!gatech!swiss.ans.net!netnews.lightside.com!nowhere.uucp!jehamby From: jehamby@PROBLEM_WITH_INEWS_DOMAIN_FILE (Jake E. Hamby) Newsgroups: comp.lang.ada Subject: Motif gfx progs in DEC Ada? Date: 7 Feb 1995 06:54:50 GMT Organization: Godcorp Message-ID: <3h75fq$fol@covina.lightside.com> NNTP-Posting-Host: user36.lightside.com Mime-Version: 1.0 Content-Type: text/plain;charset=US-ASCII Content-Transfer-Encoding: 7bit X-Newsreader: TIN [version 1.2 PL2] Date: 1995-02-07T06:54:50+00:00 List-Id: Pardon me for yet another DEC Ada related question but that's what we use at school... I would like to write some graphics programs for DECwindows/Motif on a VAX running VMS and DEC Ada, but I'm having problems with the Motif-to-Ada bindings. In ADA$PREDEFINED, I found the package description file MOTIF_.ADC, but I just couldn't port even the simplest "open window, print "Hello, world!" program to Ada. First, the definition for XtAppInitialize neglected to return a value (in C, it returns a Widget). When I substituted XtVaAppInitialize (which should NOT have an Ada equivalent, since Ada doesn't support varargs), the program just crashed. On the other hand, there is a DIFFERENT Motif package in ADA$EXAMPLES, but it isn't built in to the standard Ada library and I don't have time to compile it and test it, since it would not be available to teachers/other students. Anyway, can anyone please E-Mail me a simple example program to show how to use package MOTIF to write a simple graphical program? I will post up a summary... BTW, there isn't a recent port of GNAT for VMS, is there? I love the Linux version, so I hope there is, or will be soon... -- ========================================================================= * Jake Hamby - "Linux: The Choice of a GNU Generation" * * E-MAIL: jehamby@lightside.com + jehamby@vms4.sci.csupomona.edu * * http://vms4.sci.csupomona.edu/~jehamby/index.html *