comp.lang.ada
 help / color / mirror / Atom feed
* Motif gfx progs in DEC Ada?
@ 1995-02-07  6:54 Jake E. Hamby
  1995-02-07 13:59 ` Larry Kilgallen, LJK Software
  0 siblings, 1 reply; 2+ messages in thread
From: Jake E. Hamby @ 1995-02-07  6:54 UTC (permalink / raw)


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		*



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Motif gfx progs in DEC Ada?
  1995-02-07  6:54 Motif gfx progs in DEC Ada? Jake E. Hamby
@ 1995-02-07 13:59 ` Larry Kilgallen, LJK Software
  0 siblings, 0 replies; 2+ messages in thread
From: Larry Kilgallen, LJK Software @ 1995-02-07 13:59 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1995-02-07 13:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-02-07  6:54 Motif gfx progs in DEC Ada? Jake E. Hamby
1995-02-07 13:59 ` Larry Kilgallen, LJK Software

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox