Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!cs.utexas.edu!swrinde!mips!spool.mu.edu!munnari.oz.au!bruce!goanna!mjb From: mjb@goanna.cs.rmit.oz.au (Mat Boek) Newsgroups: comp.os.msdos.programmer Subject: Turbo Pascal calling Turbo C Message-ID: <5002@goanna.cs.rmit.oz.au> Date: 19 Mar 91 04:08:29 GMT Organization: Comp Sci, RMIT, Melbourne, Australia Lines: 23 I wonder if any Borland gurus out there could answer this (I hope) simple question for me:- I have an Turbo C function which I want to call from a Turbo Pascal program. I compile it with the Pascal calling conventions for parameter passing in C, and use the $L compiler directive and declare the function as extern in the Pascal Program. Now, the C function calls another C function, in another object file.. if I include this second C object file in the Pascal program with a second $L, should it work? Please reply directly via e-mail, Thanks in advance, Mat. -- Mat Boek, Computer Science ACSnet: mjb@goanna.cs.rmit.oz R.M.I.T. ARPA: mjb%goanna.cs.rmit.oz.au@uunet.uu.net GPO BOX 2476 V, CSNET: mjb%goanna.cs.rmit.oz.au@australia Melbourne, 3001, AUSTRALIA UUCP: ...!uunet!goanna.cs.rmit.oz.au!mjb