TC++ <-> TP 6.0 Mixed Language Development

Andy DeFaria defaria at hpcupt3.cup.hp.com
Thu Apr 4 03:55:24 AEST 1991


Is it  possible to  call Turbo  Pascal  6.0  functions from Turbo C++?  The
manual doesn't say so but there is this conspicuous keyword called "pascal"
that can be specified on data declarations  (gee, what does  it do?) and on
function declarations.  The manual says that this merely imposes a "pascal"
calling convention  and then says  something about,  sorry  but  I left the
manual at home, the fact that this does not  mean that you can  call pascal
routines but just that the "pascal" calling convention  is supported.  This
is all in, I believe,  Chapter  6 of  the  programmers guide.  The rest  of
Chapter 6 discusses interfacing with assembler.

I  can't believe that Borland would  choose the   keyword "pascal" to  mean
"interface  to   assembler".  Gee, wouldn't   a  better keyword  have  been
"assembler"?

I also can't believe that Borland's Turbo C++ product would not be able to
interface cleanly and easily to Borland own  Turbo Pascal product and given
the fact that  there is probably a  large  amount of perfectly   good Turbo
Pascal code out there  that could be migrated to   Turbo C++  a piece  at a
time, I   would think  that somebody   has   a workaround to this   obivous
oversight on Borlands part.

Does anybody know more about this?

Oh, and how would you go the other way around (TP 6.0 -> TC++)?



More information about the Comp.lang.c mailing list