🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: is there a way to programmatically see if MDAC is installed and what version?

#4423
From: Stewart Gaskell
Date: Mon, 24 Dec 2001 08:56
22 lines
1551 bytes
If MDAC is installed, it's version can be found from the Windows Registry;

TRegistry* Reg = new TRegistry() ;
String MDACVer ;
try
  {
  Reg->RootKey = HKEY_LOCAL_MACHINE ;
  if (Reg->OpenKey("Software\\Microsoft\\DataAccess", false))
    MDACVer = Reg->ReadString("Version") ;
  }
__finally
  {
  delete Reg ;
  }

Stewart

"Ray" <SpamBlows@everywhere.com> wrote in message
news:3C23CA0E.F7ABDFEA@everywhere.com...
> is there a way to programmatically see if MDAC is installed and what
> version?
>
Technical Details
Message-ID: <3c26ee70$1_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!sfo2-feed1.news.digex.net!intermedia!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3C23CA0E.F7ABDFEA@everywhere.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,1b3c24391b241f7d
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-12-24 01:01:46 PST
From: "Stewart Gaskell" <Big_Stew@talk21.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3C23CA0E.F7ABDFEA@everywhere.com>
Subject: Re: is there a way to programmatically see if MDAC is installed and what  version?
Date: Mon, 24 Dec 2001 08:56:13 -0000
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 212.19.90.97
Message-ID: <3c26ee70$1_2@dnews>
X-Trace: dnews 1009184368 212.19.90.97 (24 Dec 2001 00:59:28 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!sfo2-feed1.news.digex.net!intermedia!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews