delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/09/21:49:43

From: Mehrdad Ghassempoory <ghassempoory AT cf DOT ac DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: HELP:NEED GPC graphics library
Date: Tue, 09 Dec 1997 13:35:00 +0000
Organization: UWCC
Lines: 44
Message-ID: <348D4904.FB13D642@cardiff.ac.uk>
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> <3487FA7F DOT 3AA9 AT techfak DOT uni-kiel DOT de>
NNTP-Posting-Host: giap.elsy.cf.ac.uk
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hartmut Schirmer wrote:
> 
> 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 ...

Yes, that is what I discovered. I am not new to pascal, but I don't know
much
about GPC. Say I could not find a quick way of defining C strings. I
must read
the GPC manual one of these days! 

> --
> 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