Mail Archives: djgpp/1997/12/09/16:18:14
Mehrdad Ghassempoory <ghassempoory AT cf DOT ac DOT uk> 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/
- Raw text -