Hi, I don't think that the ShapeLib use GObject convention so you cannot automagically generate a vapi file from it. But you can hand-write a vapi which act as an auto transform layer from Vala to C the functions call.
Can you post the generated vapi file here ? 2008/10/10 Tonatiuh Morales <[EMAIL PROTECTED]> > > Hi!!! > > I have one problem!! > > I do vapi for ShapeLib (read/write files dbf) i follow the tutorial for > generat vapi and i don't have any problem... > > But i try do this: > > using GLib; > using ShapeFil; > > public class Main : Object { > public static void main (string[] args) { > weak DBFHandle handle = DBFOpen ("entidad.dbf","rb"); > int campos = DBFGetFieldCount (handle); > int rows = DBFGetRecordCount (handle); > stdout.printf ("campos %d \n",campos); > stdout.printf ("rows %d \n",rows); > } > } > > > valac -C --pkg=ShapeFil Main.vala > > > valac generated this in method void main_main (char ** args, int > args_length) > > > > void main_main (char** args, int args_length1) { > ShapeFilDBFHandle* handle; > gint campos; > gint rows; > handle = DBFOpen ("entidad.dbf", "rb"); > campos = DBFGetFieldCount (handle); > rows = DBFGetRecordCount (handle); > fprintf (stdout, "campos %d \n", campos); > fprintf (stdout, "rows %d \n", rows); > } > > > No exist ShapeFilDBFHandle, because is only DBFHandle > > I have Fedora Core 9 , Vala 0.3.5 thank you !!!!! for you help =) > _________________________________________________________________ > P.D. Checa las nuevas fotos de mi Space > http://home.services.spaces.live.com/ > _______________________________________________ > Vala-list mailing list > Vala-list@gnome.org > http://mail.gnome.org/mailman/listinfo/vala-list >
_______________________________________________ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list