On Sun, Jul 30, 2006 at 05:44:51PM +0200, Bastiaan Veelo wrote:
Hi,
In an attempt to hook up to GTK+, I am trying to pass a Pascal array of varible size to C. Static arrays are fine, but these arrays carry some additional information like capacity and size, and I gues they could be received as a struct on the C-side. However, I cannot figure out the structure that the struc should have.
I do like this in Pascal:
procedure YGTK_init(var argc : CInteger; argv : array of CString); external name 'YGTK_init';
If all you need is to pass argc and argv to the library, there are predefined variables CParamCount and CParameters (of type integer and PCString, respectively, which matches C int and **char).
Emil Jerabek