From: Mehrdad Ghassempoory 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> <3487FA7F DOT 3AA9 AT techfak DOT uni-kiel DOT de> NNTP-Posting-Host: giap.elsy.cf.ac.uk 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 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