Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!bionet!ames!amdahl!ntmtv!hildum From: hildum@ntmtv.UUCP (Eric Hildum) Newsgroups: comp.windows.x Subject: Re: Fortran and C Message-ID: <245@ntmtv.UUCP> Date: 31 Oct 89 21:20:48 GMT References: <8910191328.AA01370@expo.lcs.mit.edu> Reply-To: hildum@alpet.UUCP (Eric Hildum) Organization: Northern Telecom (Mountain View, CA) Lines: 18 Assuming that DECwindows follows the procedure calling standard (check your manuals to learn about this), you should have no problems calling X window functions from FORTRAN. Just check your FORTRAN Users Guide and the DECwindows manuals about procedure calling. As far as reading/writing files in C and FORTRAN, it depends on how fancy you wish to get and what sort of capabilities you need. RMS supplies a number of different file formats and manipulation functions (eg, keyed access, etc.), and can be used from either language quite easily. If you wish to stick with language builtins, then FORTRAN has a more flexiable system. Strickly speaking, C does not have builtin I/O capability. The standard I/O library functions do call RMS however, so can handle all VMS file formats if need be. Remember, the basic standard C file structure is a stream of bytes, you have to build everything on top of that if you are doing C only file and record manipulation. Eric