How to connect to Btrieve 6.15 - 10-30-2003 , 09:42 AM
Hi to All,
I am new in Btrieve technology and all its components, engines, server
On company computer, there is a program using Btrieve database.
I have to make a program(on c++, vc) wich use Btrieve dat files and
update them from time to time, I prefer to use already installed
components and server and not to install any new server.
As I could understand that this program is using MKDE and its database
contains only DAT files. There are no DDF files !!!!. It is starting
W32mkde when it starts and then close it when it is closing. There is no
I can find following files which can help you:
As I can understand this is version of Btrieve 6.15 which is not
supported from Pervasive. I could not find SDK for 6.15 on their server
Is there any samples or tutorials or SDK how 3-rd party programs make
connection to database and executing queries and updating information?
10x in advice.
Posted via http://dbforums.com
Re: How to connect to Btrieve 6.15 - 10-30-2003 , 04:18 PM
If you need to analyze the structure and build the DDF files you can
take a look at BtSearch at www.nssdd.com. You will need the DDF files
if you wish to use ODBC. Also if you decide to go that route you are
best to upgrade to Pervasive V8. If you do not want to create DDF
files and you do not want to upgrade then you will have to create a
program using the Btrieve API. In either case you will need to know
the file structures.
zoroto <member28107 (AT) dbforums (DOT) com> wrote
Re: How to connect to Btrieve 6.15 - 10-31-2003 , 11:27 AM
You will need several things to connect to this version of Btrieve.
1) The structure of the data. What are the field definitions in the files.
Even if you do not use a DDF these will be necessary. DDF files are a set of
Btrieve files that act as a data dictionary for a collection of Btrieve data
files. Applications that do not use DDF files are called embedded
applications. The structure of the database is embedded within the
application. For example if the program was written in C or C++ then there
are struct and or typedef definitions for the record and key structures of
the files. And these are compiled into the program.
If you do not have DDF files then the application that created these files
is probably an embedded one. You can create your own applications based on
DDF files or embedded as well. In both cases you will need to find the
structure of the existing files.
2) You need an api or at a minimum a way to call into the wbtrv32.dll file
from 6.15. We have several that will work great depending on the development
tool you want to use.
We have several tools that my be of interest.
First we have the Data Manager for Btrieve and Pervasive SQL standard and
Enterprise. These can open up an existing Btrieve file even if you do not
have a DDF. In this case they create a starting DDF. From there are several
features of the program available for determining the field layouts. We have
our own version here that we use in our consulting that includes a DDF
Sniffer. This does sophisticated pattern matching of Standard and non
standard Btrieve data types with each record in the file and can break out
most any file. We can do this for you for a fee.
The other tools we have are a C++ library called Btrv++. With this you can
easily create C++ programs that handle all of the complex coding to the
btrcall interface. And it will just link right in to the version of Btrieve
you are using. In fact it works with all versions of Btrieve. And it comes
with full source code.
We also have an ActiveX control modeled on ADO that will work with that
version as well as any other. Demos and/or documentation is available on all
of these on our website. See http://www.classicsoftware.com
"zoroto" <member28107 (AT) dbforums (DOT) com> wrote