Author Topic: How to link DBF-file to wxGrid?  (Read 5766 times)

Offline Serge2005

  • Multiple posting newcomer
  • *
  • Posts: 16
How to link DBF-file to wxGrid?
« 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.
OS: LMDE2-32bit with Xfce

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: How to link DBF-file to wxGrid?
« Reply #1 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.
« Last Edit: October 13, 2005, 01:06:09 am by rickg22 »

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: How to link DBF-file to wxGrid?
« Reply #2 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.