[Mono-dev] GDA/GNOME-DB in Mono

Daniel Espinosa esodan at gmail.com
Tue Aug 22 20:25:17 EDT 2006


Ok for today the Gda bindings to Mono doesn't exist becouse a *bug* in GDA
before 1.2.x series; but for today GDA and GNOME-DB has be powered with
GValue instead of GdaValue (that couses the that *bug*), this is a
development version toward the 2.0 release, now I thing could work but I
have a lot of issues to make test it:

GDA#:

- In the code generated by GTK#, doesn't generate a init function for GDA
(gda_init), then you can't use the library (like in GLib), now then I copied
a Aplication.cs file from Gnome-Db# that implements it, and modify the
MakeFile.am to include in the DLL used by MonoDevelop, now I have this
function and can init

- After that I need to Run the main loop (like GTK) to manage GDA's GObject
events and do my program work in a function called as an argument of the Run
function, the function created by codegenerator is this:

Gda.Main.Run(Gda.InitFunc init_func)

and InitFunc is defined as:

namespace Gda {

    using System;

    public delegate void InitFunc();

}

Does any one could help me about how do I define a custum InitFunc to make
my program run *inside* the main loop and how to pass it as an argument to
Gda.InitFunc?

In the Gda documentation, you call a init function in order to run your
program with a correctly initated libgda.

GNOME-DB#:

- In CVS, the current gnomedb-sharp is broken becouse it doesn't generated
any code and ofcourse any DLL to use in MonoDevelope.

- I modifed some errors in MakeFile.am and configure.in, and now the code is
generated but the compiler sends the following messages:

generated/Form.cs(11,20): error CS8025: Parsing error
generated/Grid.cs(11,20): error CS8025: Parsing error
generated/Layout.cs(11,22): error CS8025: Parsing error
generated/Matrix.cs(11,22): error CS8025: Parsing error
generated/Server.cs(11,22): error CS8025: Parsing error


Does any one know what it means?

The code generated in (11,20) is (a coma ','):

#region Autogenerated code
    public  class Grid, GnomeDb.DataWidget {

        ~Grid()
        {
            Dispose();
        }

(.....)

-- 
Trabajar, la mejor arma para tu superación
"de grano en grano, se hace la arena" (R) (entrámite, pero para los cuates:
LIBRE)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060822/2a4b315f/attachment.html 


More information about the Mono-devel-list mailing list