🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to new an ADOConnection at run time?

#1672
From: Arnie Mauer
Date: Wed, 24 Mar 2004 16:34
20 lines
1474 bytes
"Steve Aletto" <steve_alettoANTI@SPAMhotmail.com> wrote in message
news:406135ab@newsgroups.borland.com...
> > 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.
>
... And both of these calls must be made on a per thread basis if you're
using threads with ADO components.

- Arnie
Technical Details
Message-ID: <4061b862$1@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: <40612e87@newsgroups.borland.com> <406135ab@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-24 08:40:57 PST
From: "Arnie Mauer" <xxx@nowhere.net>
Newsgroups: borland.public.cppbuilder.database.ado
References: <40612e87@newsgroups.borland.com> <406135ab@newsgroups.borland.com>
Subject: Re: How to new an ADOConnection at run time?
Date: Wed, 24 Mar 2004 11:34:50 -0500
Lines: 22
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: 24.151.53.89
Message-ID: <4061b862$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1080146018 24.151.53.89 (24 Mar 2004 08:33:38 -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