Hi GPC fellows,
I was few weeks ago wondering about a Borland graphical unit, and Peter answered me about the one of GPC.
Few questions about it:
Is it near compatible with the one of Borland (I know it is not the aim of *GNU* Pascal to be Borland compatible, that such oriented UN*X Pascal do exist, and so on...) Meanwhile I am interested in making some code with graphical output using GPC's unit and GPC itself that would be almost compatible with a Borland compilation (which would require minor changes).
The other question is about the availability of the GPC library, where can one find it?
Also, is it well (at least, somewhat) documented?
Cheers.
Laussy.
Hi!
According to Laussy Fabrice:
I was few weeks ago wondering about a Borland graphical unit, and Peter answered me about the one of GPC. [...] Is it near compatible with the one of Borland [...] ?
Yes.
Meanwhile I am interested in making some code with graphical output using GPC's unit and GPC itself that would be almost compatible with a Borland compilation (which would require minor changes).
You can surround GPC-specific parts with (*$ifdef __GPC___*) ... (*$else *) ... (*$endif *). Only (*$ifopt ... *) constructs will cause problems since GPC currently does not support (*$ifopt ... *).
The other question is about the availability of the GPC library, where can one find it?
See the DJGPP distribution on your favourite SimTel mirror, directory `v2tk', file `grx22.zip', IIRC. Inside that archive, look out for the keywords "Linux", "bcc2grx", and "bgi2grx".
Also, is it well (at least, somewhat) documented?
No, but since you know Borland's `Graph' Unit you won't need that kind of documentation. ;-)
Good luck,
Peter