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 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-02-07 07:38:03 PST Path: swrinde!howland.reston.ans.net!news2.near.net!news3.near.net!noc.near.net!eisner!kilgallen From: kilgallen@eisner.decus.org (Larry Kilgallen, LJK Software) Newsgroups: comp.lang.ada Subject: Re: Motif gfx progs in DEC Ada? Message-ID: <1995Feb7.085911.9061@eisner> Date: 7 Feb 95 08:59:11 -0500 References: <3h75fq$fol@covina.lightside.com> Organization: DECUServe Date: 1995-02-07T08:59:11-05:00 List-Id: In article <3h75fq$fol@covina.lightside.com>, jehamby@PROBLEM_WITH_INEWS_DOMAIN_FILE (Jake E. Hamby) writes: > 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. MOTIF_.ADC in ADA$PREDEFINED: is defective, and that was noted by DEC. I would recommend deleting it after performing the steps outlined below. > 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. The MOTIFBINDING_*.ADA and MOTIFBINDINGX5M12_.ADA bindings in ADA$EXAMPLES are a result of the work DEC did to remedy MOTIF_.ADC problems. Command procedure ADA$EXAMPLES:0_MOTIFBINDING_BUILD.COM can be used by someone with privilege (e.g., your system manager) to insert the new bindings into the standard Ada library. As your system manager knows, major changes to layered products should be done just after the regular backup of the system disk. What your system manager may not know (if not an Ada programmer) is that changes to the standard Ada library are major changes to a layered product, so make that clear in your request. Larry Kilgallen Using Ada without a government mandate