Hi all, could any help me about how do I need to do in order to make GDA and Gnome-Db work in mono?

For today I modified some Makefile.am and configure.in in order to make GAPI2 generate the code and compile (just for GDA at the moment).

For GDA, it creates the gda-sharp.dll file and could be used by monodevelop, but in order to create a simple connection and get some data I wrote the following code:

Gda.Client client = new Gda.Cliente;
Gda.Connection cnn = client.OpenConnection("data_source", "user", "pass", Gda.ConnectionOptions.ReadOnly);

if ( cnn.IsOpen) {
   ....
}

when I run this progra, it compiles well but send the following error:

Unhandled Exception: System.EntryPointNotfoundException: gda_connection_is_open
 at (wrapper managed-to-native) Gda.Connection:gada_connection_is_open (intptr)
 at Gda.Connectgion.get_IsOpen() [0x0000]
 at MainClass.Main (System.String[] args) [0x00024] in ....

Any Idea?
--
Trabajar, la mejor arma para tu superación
"de grano en grano, se hace la arena" (R) (entrámite, pero para los cuates: LIBRE)
_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to