Carel Fellinger wrote:
On Wed, Mar 20, 2002 at 06:12:35PM +0100, Frank Heckenbach wrote:
Marco van de Voort wrote:
I don't know how similar the header conversions are between GPC and FPC. (afaik GPC can use C headers directly?)
No yet. But it can easily include little C wrappers that include the headers, and we recommend this.
I'm probably a bit dim here, but surely you are not saying that it's possible to forgo rewriting the header file into a pascal interface module by `{$include wrapper.c}', are you?
No -- it's {$L wrapper.c}. ;-)
Of course, you still have to write wrapper.c and you need some external declarations in Pascal. For more details, you might want to look at existing interfaces such as RegEx (with the GPC sources), or the mentioned database units, etc. ...
Frank