User forums > Using Code::Blocks

How to link DBF-file to wxGrid?

(1/1)

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.

rickg22:
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.

Navigation

[0] Message Index

Go to full version