🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #1196

Re: MDAC version

#1196
From: Vladimir Stefanovic
Date: Thu, 16 Sep 2004 06:10
43 lines
1764 bytes

YangKai Liu  wrote

> I am writing codes with ADO using BCB6.  The program will be shipped
to
> producttion site.  Which version MDAC is requried at the production
site?
> Should I install BCB6 SP4, will there be any change to the required
MDAC
> version?

AFAIK, XP ships with at least 2.7 MDAC installed, which can be seen
in registry (at XP)

HKEY_LOCAL_MACHINE \ Software \ Microsoft \ DataAccess [Version]

You can also check for installed ADO from code:

// Untested

double GetADOVersion()
{
   CoInitialize( NULL );
   float Result = 0.0;
   try
   {
      Variant Ado;
      Ado = CreateOleObject( "ADODB.Connection" );
      Result = Ado.OlePropertyGet ( "Version" );
      Ado.Clear();
   }
   __finally
   {
      CoUninitialize();
   }
   return ( Result );
}



Best regards,
Vladimir Stefanovic
Technical Details
Message-ID: <41492de1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41492884$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,cb2623b489e3d049
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Vladimir Stefanovic" <spam@not.needed>
Newsgroups: borland.public.cppbuilder.database.ado
References: <41492884$1@newsgroups.borland.com>
Subject: Re: MDAC version
Date: Thu, 16 Sep 2004 08:10:22 +0200
Lines: 46
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 213.137.116.238
Message-ID: <41492de1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1095314913 213.137.116.238 (15 Sep 2004 23:08:33 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail