[Vala] (no subject)




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/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]