🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #10857

Re: ODBC and API

#10857
From: Vladimir Stefanovic
Date: Thu, 11 Mar 2004 09:01
27 lines
1524 bytes
> 1. I would like to detect if a specific version of MDAC is installed on
> user's computer.

Maybe something like this:

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

> 2. I would like to detect language of MDAC installed. Does exist an API
> binded to MDAC for this purpose ?

I'm not sure I have understoud this... MDAC is a complete set of components.
Technical Details
Message-ID: <40502ad9@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <404f719e@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,d3564588431498df
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-03-11 01:09:58 PST
From: "Vladimir Stefanovic" <mailbox@is.clean>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <404f719e@newsgroups.borland.com>
Subject: Re: ODBC and API
Date: Thu, 11 Mar 2004 10:01:12 +0100
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 213.137.116.132
Message-ID: <40502ad9@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1078995673 213.137.116.132 (11 Mar 2004 01:01:13 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail