How to connect to dbf files?

K

Karl Heinz Buchegger

moo said:
Anybody have any idea?


If you mean: how to read a dbf file?

Well. Usually one starts with beeing lazy. Search the web
if somebody has already done this and is willing to share
his/her code.

If this turns up with nothing, you start with searching
(and finding) a description of the file format. Further
steps depend on what is written down in that specification
but the usual pattern is this:

* come up with a data structure that can hold the data
included in the file (or the parts of it you are
interested in)

* open file
read from file into your data structure
close file
 
T

Thomas Matthews

moo said:
Anybody have any idea?
If you mean connecting to a database, you will need
to ask the folks in a newsgroup dedicated to the
database application. Many database applications
will have an API that lets programmers access the
database files.

The C++ language has no standard facilities for
database access or client-server support. You
will need some platform specific functionality.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top