Mail Archives: djgpp/1997/12/05/13:30:54
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 -