[comp.lang.pascal] linking Turbo Pascal with Microsoft C

IN307%DHAFEU11.BITNET@cunyvm.cuny.edu ( Peter Sawatzki) (06/28/91)

Dominic Chow asks:
>Does anyone know how to link Turbo Pascal program with Microsoft C
>Libraries ?

I know of one (tricky) way to 'link' Microsoft C Libraries with
Turbo Pascal (4.0/5.0/5.5/6.0):
  Write a small assembler (or maybe C program) and link it
with the C library. Then use the DOS EXEC function in Turbo Pascal
and load the resulting EXE as an OVERLAY. This could one call
"Dynamic Linking" -) -) -). I have done this with a large OBJ file
(>100k) that contained 8088 and 68000 assembler code. I can mail
the code (provided i find it) to everyone interested.
  Peter


 :::::::::::::::::::::::::::::::::::::::::
: Peter Sawatzki  <IN307DHAFEU11.BITNET> :
 :::::::::::::::::::::::::::::::::::::::::