Newsgroups: comp.os.msdos.djgpp From: "William A. Barath" Subject: Re: HELP:NEED GPC graphics library In-Reply-To: <3486acc5.90316106@netnews.cf.ac.uk> Content-Type: TEXT/PLAIN; charset=US-ASCII Message-ID: Sender: news AT freenet DOT victoria DOT bc DOT ca (News Manager) Organization: Victoria Freenet Association References: <3486acc5 DOT 90316106 AT netnews DOT cf DOT ac DOT uk> Mime-Version: 1.0 Date: Fri, 5 Dec 1997 10:53:51 GMT Lines: 32 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Thu, 4 Dec 1997, M. Ghassempoory wrote: |I have written some programs in TURBO PASCAL, using GRAPH.TPU. A |couple of my students want to run them under GPC. Has anybody |tried to port GRAPH.TPU to GPC yet? Or do I have to |do it myself? I know BCC2GRX exists, but it is in C. Is there a |pascal version anywhere? 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. :) Wil Barath, aka WseM : "I feel as though I see my pen to write" Author of VPM, EDITPLN, and other VGA Planets support programs Visit my homepage! -------------> http://victoria.tc.ca/~wi534