Re: make wxw & odbc
Kevin Gordon <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.wxnet |
|---|---|
| Message-ID | <[email protected]> |
I am still experimenting Mike. ******************************************************************************************************* linuxpro Debug # ./wxnet-run Dbgrid2.exe Unhandled Exception: System.DllNotFoundException: odbc32 in <0x00053> (wrapper managed-to-native) System.Data.Odbc.libodbc:SQLAllocHandle (System.Data.Odbc.OdbcHandleType,intptr,intptr&) in <0x000ad> System.Data.Odbc.OdbcConnection:Open () in <0x0004f> (wrapper remoting-invoke-with-check) System.Data.Odbc.OdbcConnection:Open () in <0x00b1c> wx.Samples.MyFrame:.ctor (string,System.Drawing.Point,System.Drawing.Size) in <0x00094> wx.Samples.DBGRID:OnInit () in <0x00040> (wrapper native-to-managed) wx.Samples.DBGRID:OnInit () in (unmanaged) (wrapper managed-to-native) wx.App:wxApp_Run (int,string[]) in <0x00004> (wrapper managed-to-native) wx.App:wxApp_Run (int,string[]) in <0x00021> wx.App:Run () in <0x00031> wx.Samples.DBGRID:Main () **************************************************************************************************** The code I am using is derived from Dbgrid.cs (the sample). I modified it to use Npgsql and that is running successfully. Previously I have used unixODBC and wxWindows with the wxWindows Db sample. Thus I have the DSN previously used. I am now trying to use the Dbgrid.cs (for Npgsql) modified back to ODBC. This is really the original Dbgrid.cs file modified to access a database created by me. Questions: What do I need to do to use unixODBC on Mono.net plus wx.NET? Many thanks for your help. Kevin On Sun, 18 Jul 2004 17:20, Michael S. Muegel wrote: > > I am adding odbc: > > WXW_EXTRA_CONFIG_ARGS = --with-odbc > > I don't think you want this Kevin. You would use the .NET Framework's > System.Data classes, not wxWidgets' (which have not been wrapped by wx.NET, > given better classes built into the Framework). See the DbGrid sample, > although it is lacking a sample database creation script and really only > works on Alexander's system. > > Alexander, this sample begs for a SQL script to create some sample data and > a more configurable way to define the database connection string (command > line makes sense). > > Regards, > -Mike > > -- > Michael S. Muegel > Dallas, TX > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > wxnet-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wxnet-users ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click