Microsoft Interlanguage Calls (C, FORTRAN, BASIC!?)
PNU at PSUVM.BITNET
PNU at PSUVM.BITNET
Tue Apr 12 11:47:22 AEST 1988
I am primarily a FORTRAN programmer. On the PC, I use MS FORTRAN
(v. 4.01). Increasingly, I find myself wishing for more control
over system-specific I/O, like graphics, cursor positioning, text
color, and all the other goodies you can get with other languages.
I own QuickC, and enjoy programming in it. I also own the newest
release of QuickBASIC (primarily because some of the I/O boards used
on our PC's come only with BASIC callable drivers). Ideally, I'd like
to be able to combine the number crunching power of FORTRAN (which
I am most comfortable with) and the I/O functions of C and/or BASIC.
My problem is this: I know its possible to create .EXE files
by linking object modules written in several Microsoft languages.
However, the examples in the FORTRAN, C and BASIC manuals are pretty
shoddy. If anyone has simple examples of programs in which FORTRAN
routines call or are called by C and/or basic programs, I would
greatly appreciate seeing copies of the source files. In addition,
if anyone has any general advice on how best to implement interlanguage
calls, please share it with me.
If possible, refrain from lecturing me on how simple all of this
would be to do with MASM. I don't have the time or inclination to
learn assembly language. Also, I don't want to get embroiled in a
big debate over how I should just write all my applications in C.
The truth is I am working with source code written 15 years ago in
unstructured FORTRAN, and I'm not about to convert it now!
Thanks!
Jon
*****************************************************************
Jon Peters "Any opinions expressed
or implied are solely
PNU at PSUVM.BITNET those of the author,
JAP at PSUARLC.BITNET who does not speak for
JAP at PSUECLA.BITNET ARL/PSU."
Research assistant,
The Applied Research Laboratory/PSU (814) 865-4229
P.O. Box 30, State College PA 16804
*****************************************************************
More information about the Comp.lang.c
mailing list