Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!mcsun!ukc!ox-prg!oxuniv!speedy From: speedy@vax.oxford.ac.uk Newsgroups: comp.lang.pascal Subject: Re: Linking Turbo Pascal with Microsoft C Library Message-ID: <1991Jun25.132758.824@vax.oxford.ac.uk> Date: 25 Jun 91 12:27:57 GMT References: <27280@adm.brl.mil> Organization: Oxford University Computing Service Lines: 20 In article <27280@adm.brl.mil>, A893700%CUCSC.BITNET@yalevm.ycc.yale.edu (Dominic Chow, The Chinese University of Hong Kong) writes: > Does anyone know how to link Turbo Pascal program with Microsoft C > Libraries? > > I recently got a library written in Microsoft C (6.00 I think) and I know > to make use of some of the routines in my Turbo Pascal program. I try to > extract the related object modules and $L into the program but it doesn't > work. > > Thanks in advance. > > Dominic Chow, You will be unable to link in the object files successfully into Turbo Pascal unless a) you can change the segement name of the code to 'CODE' (I think--Its in the manual) b) the object code does not use any of the MicroSoft C runtime library - since as you dont have the source code for this you will not be able to change any segment names. I have thought about this problem often--if anyone can see a way around this (Particulalry for Turbo C++) I would be interested. Perhaps a dissassembler for OBJ/LIB files would help?