delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/05/13:45:46

From: Hartmut Schirmer <hsc AT techfak DOT uni-kiel DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: HELP:NEED GPC graphics library
Date: Fri, 05 Dec 1997 13:58:39 +0100
Organization: Technische Fakultaet, University of Kiel, Germany
Lines: 35
Message-ID: <3487FA7F.3AA9@techfak.uni-kiel.de>
References: <3486acc5 DOT 90316106 AT netnews DOT cf DOT ac DOT uk> <Pine DOT GSO DOT 3 DOT 95 DOT iB1 DOT 0 DOT 971205024741 DOT 15976K-100000 AT vtn1>
NNTP-Posting-Host: zora.techfak.uni-kiel.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019