delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/05/13:30:54

Newsgroups: comp.os.msdos.djgpp
From: "William A. Barath" <wi534 AT victoria DOT tc DOT ca>
Subject: Re: HELP:NEED GPC graphics library
In-Reply-To: <3486acc5.90316106@netnews.cf.ac.uk>
Message-ID: <Pine.GSO.3.95.iB1.0.971205024741.15976K-100000@vtn1>
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

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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019