Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Detect BDE Version

107 views
Skip to first unread message

Sten Larsson

unread,
Jan 9, 2000, 3:00:00 AM1/9/00
to
Hi All!

How can I from inside my appication detect which BDE version that is
installed ? ... and if BDE is installed at all ?

Thanks!
/sten

(I'm using C++ Builder, not that it matters.)

Bill Todd (TeamB)

unread,
Jan 9, 2000, 3:00:00 AM1/9/00
to
See DbiGetSysVersion in the BDE API help file in your BDE directory.

--
Bill

Bill Todd (TeamB)
(TeamB cannot respond to questions received via email)

Sten Larsson

unread,
Jan 9, 2000, 3:00:00 AM1/9/00
to
Bill,

thank you for your response. I feel a little bit silly - I should have
realized that.

>See DbiGetSysVersion in the BDE API help file in your BDE directory.

/sten


Sten Larsson

unread,
Jan 9, 2000, 3:00:00 AM1/9/00
to
Bill,

DbiGetSysVersion reports 500 After installing BDE 5.10!?

I guess thats how things are.

Thanks again.

/sten


Mike Harris

unread,
Jan 10, 2000, 3:00:00 AM1/10/00
to

Sten

>DbiGetSysVersion reports 500 After installing BDE 5.10!?


correct. to get the exact version. Look up the regkey
SOFTWARE\\Borland\\Database Engine
it will hold the path to "idapi32.dll"; , I do not recall the exact regkey..

read the value to get the local instal patch
The default install is
String szdir = "C:\\Program Files\\BORLAND\\COMMON FILES\\BDE";

if( SetCurrentDirectory( szdir.c_str()))
{

then do one of the many fileversion examples posted in the winapi group.

HTH

Bill Todd (TeamB)

unread,
Jan 10, 2000, 3:00:00 AM1/10/00
to
The other alternative is to get the version directly from IDAPI32.DLL. You
can find the path to the directory that holds IDAPI32.DLL in the DLLPath
entry under HKEY_LOCAL_MACHINE\Software\Borland\Database Engine.
0 new messages