🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to new an ADOConnection at run time?

#1669
From: Steve Aletto
Date: Wed, 24 Mar 2004 07:14
12 lines
1299 bytes
> When I try to "new" a TADOConnection at run-time an exception is
raised:
>
> "Error in EOleSysError with message: CoInitialize has not been
called"

Call CoInitialize(NULL); before of using ADO and CoUninitialize();
when you don't need it any longer.

HTH,

Steve.
Technical Details
Message-ID: <406135ab@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail
References: <40612e87@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,921a3cbd4e1b3c9c
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2004-03-23 23:35:07 PST
Reply-To: "Steve Aletto" <steve_alettoANTI@SPAMhotmail.com>
From: "Steve Aletto" <steve_alettoANTI@SPAMhotmail.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <40612e87@newsgroups.borland.com>
Subject: Re: How to new an ADOConnection at run time?
Date: Wed, 24 Mar 2004 08:14:33 +0100
Lines: 14
Organization: Steve Aletto
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 80.105.101.132
Message-ID: <406135ab@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1080112555 80.105.101.132 (23 Mar 2004 23:15:55 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed.iinet.net.au!newsfeed.iinet.net.au!PeerFeed.KWeb.on.ca!news.kweb.on.ca!newsgroups.borland.com!not-for-mail