From: Hartmut Schirmer 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> NNTP-Posting-Host: zora.techfak.uni-kiel.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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