Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Serge2005 on October 12, 2005, 08:46:51 pm

Title: How to link DBF-file to wxGrid?
Post by: Serge2005 on October 12, 2005, 08:46:51 pm
Hello friends, could you tell me pls, how can I browse DBF-files with wxGrid?
Borland Builder C++ has DataSource-component and Table-component linking them into DBGrid-component I could visually browse DataBase-files, but I'm newbie in wxWidgets and don't know how to do this in wxWidgets.

Thank you all in advance.
Title: Re: How to link DBF-file to wxGrid?
Post by: rickg22 on October 13, 2005, 01:02:29 am
I think you need to implement the DBF i/o yourself, unless there's a wxDBF or something. Lemme check.

Database functionality
wxWidgets has a set of ODBC classes, which work on Windows and Unix (subject to the driver being used). If ODBC doesn't suit, you can use other libraries, such as the third-party cross-platform Xbase library, a free dBase clone, or SQLite which now has a GUI client written with wxWidgets.

(From http://www.wxwindows.org/whychoos.htm )

The xbase library they mention is http://linux.techass.com/projects/xdb/ but i don't know about Windows support... you could ask them anyway.

Oh, wait. http://prdownloads.sourceforge.net/xdb/xbase-2.0.0.tar.gz includes MINGW makefiles for the windows platform.
Title: Re: How to link DBF-file to wxGrid?
Post by: rickg22 on October 13, 2005, 01:08:50 am
And regarding components, remember you're moving from the RAD-everything-but-kitchensink world to the C++-you're-on-your-own world. You might have to do a lot of stuff by hand.