🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Could not convert variant of type (OleStr) into type (Double)

#691
From: Vladimir Stefanovic
Date: Wed, 06 Jul 2005 20:17
44 lines
1847 bytes
Hi,

This is nightmare!

The code for determining the ADO version installed on
the system, which worked for years suddenly stopped
working on my machine. In fact all my EXE's that have
that code included stoped working with Error message:

"Could not convert variant of type (OleStr) into type (Double)"

When I start the EXE from the IDE, the program stopped
at line I marked:

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

Commenting this code with returning fake true result made the program
working again...

What have I messed? Something with Borland's DLL/BPL or is something
in the system?




-- 
Best regards,
Vladimir Stefanovic 
Technical Details
Message-ID: <42cc3c44$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,b65545ea644cb640,start
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Vladimir Stefanovic" <antivari@po.sbb.co.yu>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Could not convert variant of type (OleStr) into type (Double)
Date: Wed, 6 Jul 2005 22:17:07 +0200
Lines: 46
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 82.117.212.65
Message-ID: <42cc3c44$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1120681028 82.117.212.65 (6 Jul 2005 13:17:08 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail