Path: utzoo!attcan!lsuc!ncrcan!ziebmef!mdfreed From: mdfreed@ziebmef.uucp (Mark Freedman) Newsgroups: comp.lang.pascal Subject: Calling TurboPascal from TurboC Message-ID: <1988Dec2.200313.29489@ziebmef.uucp> Date: 3 Dec 88 01:03:11 GMT Distribution: na Organization: Ziebmef Public Access BBS/Unix, Toronto, Canada Lines: 25 I recently purchased the Blaise "Turbo Power Tools Plus" package (for Turbo Pascal 4.0) at a clearance sale. I had thought that the "pascal" keyword in Turbo C 2.0 was included so that Turbo C could call a Turbo Pascal procedure. To quote from the User's Guide, Page 362 states, "In this section, we make it clear how easy interfacing Turbo C to other languages can be". Unfortunately, Turbo Pascal doesn't appear to qualify as one of the "other languages" :-). (quoting from Page 364: "Note that this does not mean you can call Turbo Pascal functions from Turbo C: you can't.". I believe that Microsoft supports mixed-language programming (C, PASCAL, FORTRAN, and ASSEMBLER), and I'm distressed to discover this apparent oversight in Turbo Pascal. Is there, in fact, a way to call Turbo Pascal Procedures from Turbo C ??? I haven't yet received Turbo Pascal 5.0, but I believe that the package includes utilities to extract a procedure from a .TPU file, and convert it to a .OBJ file. What would the resulting .OBJ file be used for ???