Re: [gnome-db] Help



On Sun, 2003-06-01 at 14:22, Maulik wrote:
> Dear Sir,
> 
> I am newbie with libgda.
> 
> I am trying to run following code.
> 
> #include<libgda/libgda.h>
> 
> ....
> 
> GdaRecordset *rs;
> glong rc;
> 
> /* Execute the command */
> rs = gda_command_execute(cmd, &rc, 0);
> 
> /* Display the results. */
> gda_recordset_move_first(rs);
> while (!gda_recordset_eof (rs)) {
> 
>   /* Retrieve the name field. */
>   GdaField *name = gda_recordset_field_name(rs, "name");
>   g_print ("Name = %s\n", gda_stringify_value(NULL, 0, name));
> 
>   /* Move to the next row. */
>   gda_recordset_move_next (rs);
> }
> 
> ....
> 
> 
> but compiler doesn't find GdaRecordset ...
> it this class removed ?
> if yes then what is the alternative way ?
> 
what version of libgda are you compiling against? The code you're using
is from the old 0.2.x versions, so maybe you are compiling against the
new >= 0.8.x. Is that the case?

In either case, you should not use 0.2.x anymore. That's old,
unsupported code. About examples, see the libgda manual, in the
documentation section on our web site.

> also , do you have any Big Examples using libGda ?
> (I find only 1 example provided with this lib...not enough for me !)
> 
see above

cheers




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