🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #5292

Turbo Pascal calling Turbo C

#5292
From: Mat Boek
Date: Tue, 19 Mar 1991 04:08
23 lines
1290 bytes
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
Technical Details
Message-ID: <5002@goanna.cs.rmit.oz.au>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!cs.utexas.edu!swrinde!mips!spool.mu.edu!munnari.oz.au!bruce!goanna!mjb

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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