Article View: borland.public.cppbuilder.database.ado
Article #1859Re: How can I find out if ADO is installed and what version?
From: Vladimir Stefanovic
Date: Sat, 24 Jan 2004 14:36
Date: Sat, 24 Jan 2004 14:36
21 lines
1389 bytes
1389 bytes
> Create new ADODB.Connection object and check its Version property.
What's wrong with this... It said: 'Version' is not a member of Variant.
#include <ComObj.hpp>
// ...
Variant ADO;
float Result;
try
{
ADO = CreateOleObject( "ADODB.Connection" );
Result = StrToFloat( ADO.Version );
ADO = Unassigned;
}
catch ( ... )
{
Result = 0.0;
}
ShowMessage( FloatToStr( Result ) );
Technical Details
Message-ID:
<40128353$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40112953@newsgroups.borland.com> <4012229f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,a1a5fb03d942cc7c X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2004-01-24 06:39:34 PST From: "Vladimir Stefanovic" <spam@not.needed> Newsgroups: borland.public.cppbuilder.database.ado References: <40112953@newsgroups.borland.com> <4012229f$1@newsgroups.borland.com> Subject: Re: How can I find out if ADO is installed and what version? Date: Sat, 24 Jan 2004 15:36:51 +0100 Lines: 25 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.214 Message-ID: <40128353$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1074955091 213.137.116.214 (24 Jan 2004 06:38:11 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail