News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

How to link DBF-file to wxGrid?

Started by Serge2005, October 12, 2005, 08:46:51 PM

Previous topic - Next topic

Serge2005

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.
OS: LMDE2-32bit with Xfce

rickg22

#1
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.

rickg22

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.