Xref: utzoo comp.os.msdos.programmer:5935 comp.os.msdos.misc:2611 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!uunet!comp.vuw.ac.nz!cavebbs!frank From: frank@cavebbs.gen.nz (Frank van der Hulst) Newsgroups: comp.os.msdos.programmer,comp.os.msdos.misc Subject: Re: calling C routines from Turbo Pascal Keywords: Turbo C++,Pascal Message-ID: <1991Jun26.080205.11216@cavebbs.gen.nz> Date: 26 Jun 91 08:02:05 GMT Article-I.D.: cavebbs.1991Jun26.080205.11216 References: <91062528@gprc.uucp> Organization: The Cave MegaBBS, Public Access Usenet, Wellington, NZ Lines: 17 In article <91062528@gprc.uucp> franco@gprc.uucp (Franco Carlacci) writes: >I have Turbo Pascal Version 6 and Turbo C++ Version 1.0. I would like >to call Turbo C++ routines from Pascal, is this possible? I'm trying to do the same -- my attempts so far show that you have to be *very* careful with what your C code does. It must only call routines with valid Pascal names. TC v2 (I guess also TC++) generates calls to things like PCMP@ and PADD@ when you do things with pointers, and when you try to link the objects into TP it complains... Frank. -- Take a walk on the wild side, and I don't mean the Milford Track. Kayaking: The art of appearing to want to go where your boat is taking you.