Mail Archives: djgpp/1997/12/05/13:45:46
William A. Barath wrote:
>
> There need not be :)
>
> Every one of the BGI features in the pascal version of the BGI has the
> same name in the c version. However you will need to prototypye all of
> them to be able to link with them from a pascal program due to the way GPC
> mangles identifiers.
>
> so for example:
>
> #include nameofbgiheader.h
> procedure bgifeature(args...);external;c;
>
> You can mix caps on the identifier and there will be no problem.
>
> I suggest making your own header file (or Unit) that has prototypes for
> all the features that you use. If you actually sit down and write do it
> for every function/procedure, I'm sure that there are many people who
> would appreciate you posting it to DJ for inclusion in his achives. :)
>
This has already be done by Sven Hilscher. The source is somewhere on
the
GPC web server and will be included in the next BCC2GRX release.
Hartmut
PS: It's not that straight forward William says, you have to deal with
different string types in Pascal and C for several functions ...
--
Hartmut Schirmer | Phone: +49-431-77572-709 FAX:-703
Automatisierungs- & Regelungstech. | hsc AT techfak DOT uni-kiel DOT de
Technische Fakult"at, | http://www.techfak.uni-kiel.de/~hsc
Kaiserstr. 2, 24143 Kiel, Germany | PGP key via WWW, Key ID:6D84AEC1
- Raw text -