From: Peter Gerwinski peter@gerwinski.de To: "Nathalie Jarosz" jarosz_n@hotmail.com Subject: Re: beta distribution Date: Wed, 28 Jun 2000 17:41:48 +0200
So I still have some questions... I have tried with a C routine and the pascal unit and program but it doesn't work.
In short: To use functions
extern double foo (double x); extern void bar (void);
Where are these functions and in which form? Is it a C program or do I have to put it in the pascal unit or program?
you write a Pascal unit as follows:
unit FooBar; interface function Foo (x: Real); C; procedure Bar; C; implementation end.
Same questions for this part. Is it a file named FooBar or FooBar.p or something else?...
Then your program can call the functions:
program Something; uses FooBar; begin Bar; writeln (Foo (42)) end.
I guess that if I manage to define correctly the 2 previous parts, it will be ok...
Thanks for help,
Nathalie
________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com