From: Peter Gerwinski Newsgroups: comp.os.msdos.djgpp Subject: Re: HELP:NEED GPC graphics library Date: 9 Dec 1997 19:06:29 GMT Organization: Universitaet Essen Lines: 33 Message-ID: <66k4rl$ffk3@mx2.hrz.uni-essen.de> References: <3486acc5 DOT 90316106 AT netnews DOT cf DOT ac DOT uk> <3487B4C2 DOT 18D4 AT techfak DOT uni-kiel DOT de> <66c8ss$fce4 AT mx2 DOT hrz DOT uni-essen DOT de> <348D482B DOT FA8F6419 AT cardiff DOT ac DOT uk> NNTP-Posting-Host: agnes.Dida.Physik.Uni-Essen.DE To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Mehrdad Ghassempoory wrote: > > My unit is can be easily ported to work with GPC and Borland Pascal. I > have now upgraded to GRX22, but I can't compile the examples. I have > posted another message here asking for help. You probably have to upgrade your GPC to beta 971001. See the GPC home page (URL below) for more information. Hartmut Schirmer wrote: > > PS: It's not that straight forward William says, you have to deal with > different string types in Pascal and C for several functions ... The external declaration of a C function that wants a string extern void foo ( char *bar ); reads in GPC syntax Procedure Foo ( Bar: CString ); C; If you want to pass a Pascal string to that procedure just add the #0 character manually. Hope this helps, Peter Dipl.-Phys. Peter Gerwinski, Essen, Germany, free physicist and programmer peter DOT gerwinski AT uni-essen DOT de - http://home.pages.de/~peter.gerwinski/ [971005] maintainer GNU Pascal [971001] - http://home.pages.de/~gnu-pascal/ [971005] PGP: AC6C 9445 BE28 A496 0ECC E912 4725 8275 FIGHT SPAM: http://maps.vix.com/