From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,5b850500abfbaa04 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1991-09-05 23:30:45 PST Path: gmdzi!unido!fauern!iraun1.ira.uka.de!yale.edu!qt.cs.utexas.edu!zaphod.mps.ohio-state.edu!wupost!uunet!munnari.oz.au!yoyo.aarnet.edu.au!sirius.ucs.adelaide.edu.au!vsm.com.au!jeremy From: jeremy@vsm.com.au Newsgroups: comp.sys.dec Subject: Re: Using X intrinsics from Fortran on a VAXstation 3100... Message-ID: <1991Sep5.222941.12@vsm.com.au> Date: 5 Sep 91 12:59:41 GMT References: <1077@mrcu> Organization: VSM Software Services, Unley, South Australia In article <1077@mrcu>, ajh@uk.co.gec-mrc (Andrew Haylett) writes: >... > DEC say that using X/DECwindows from Fortran would be tricky, and they would > like to sell me their user interface language product (VUIT, I believe) - this > seems more aimed at people who want to design forms, not for displaying simple > data efficiently. Quite right -- VUIT is primarily aimed at data entry forms generation. However, it might still be useful for you, because it removes all the drudgery of coding the basic application apearance. As far as using FORTRAN goes, I can only offer my own experience as advice. I'm not very fond of C, and decided to write a DECwindows application in Pascal. It was quite feasible, but it highlighted a major problem with the VMS interface to DECwindows. The usual MIT C calling convention has been designed for C and the data structures are C-oriented. In the VMS calling convention, the data structures have been defined in SDL (DEC's meta-language for such things) and then the "%include" type files for each language are built by converting the SDL definitions to those appropriate to the language. Unfortunately this results in a bit of a mish-mash of structures; some appear well thought out, others appear pretty bad. The Pascal definitions of procedures and functions were particularly poorly done: in many cases, the routines have to be called using intermediate variant records or type-casting to perform type conversion etc because the routine demanded a particular type, which is not very compatible with the way things are "done". My pet gripe was the situation of passing callbacks to X routines, because Pascal provides an easy way to pass a routine's address to another routine, but the X routine was declared with bizarre parameters which made such calls cumersome. So, by all means try the FORTRAN, but be warned. Being not as strongly typed as Pascal, you may not have as many problems as I did. Jeremy Begg +----------------------------------------------------------+ | VSM Software Services, | E-Mail: jeremy@vsm.com.au | | P.O.Box 801, Unley, | Phone: +61 8 2388074 (pager)| | South Australia 5061 | | +----------------------------------------------------------+