pascal@laas.laas.fr (Pascal Violero) (12/16/88)
I'm having some difficult to link Turbo C functions with
a main in Turbo Pascal
for example:
-------------------------------------------------------------------
function plus (a,b:integer):integer;external;
short plus (a,b) begin
short a,b; .......
{ writeln (plus (3,2));
return (a+b); end;
}
This example is Ok
-------------------------------------------------------------------
procedure plus (a,b:integer;
var c:integer); external;
void plus (a,b,c) var c:integer
short a,b,*c; begin
{ plus (3,2,c);
*c = a+b; writeln (c);
} end;
In this example the compilation an link is Ok but the result is false
-------------------------------------------------------------------
If I do the same thing with Real (float in Turbo C), I have an error of
compilation, same thing for Arrays.
-------------------------------------------------------------------
Please someone can help me, or give me some references about link Turbo C
with Turbo Pascal.
My version of Turbo Pascal is 4.0 and my version of Turbo C is 1.5
Thanks you
+--------------------------------------------------------------------------+
| Pascal Violero |
| 7, Avenue du Colonel Roche 31400 Toulouse (France) |
| Phone : (33).61.33.63.33 |
| Email : pascal@laas.laas.fr |
+--------------------------------------------------------------------------+