🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Error in a DLL

#2673
From: Viatcheslav V. Vassiliev
Date: Thu, 15 May 2003 05:58
26 lines
2029 bytes
You should call CoInitlialize(NULL) (defined in objbase.h) or
OleInitialize(NULL) (defined in ole2.h) at beginning of your application and
CoUninitialize() or OleUninitialize at end. You should call these functions
in every thread if you use COM objects.

----------------------------------------------------------------
Regards,
Viatcheslav V. Vassiliev
http://www.oledbdirect.com
The fastest way to access MS SQL Server, MS Jet (MS Access)
and Interbase (through OLEDB) databases.


"Rato" <patrickartaud@csi.com> �������/�������� � �������� ���������:
news:3ec29751@newsgroups.borland.com...
> Hello I have created DLLs but in one I have add the ADOConnection
component
> and when I launch my application it ask me about the CoInitialize method.
> What I'm doing wrong?
> Or is it normal?
> And when I add the CoInitialize before I call the DLL I have the 'not
> defined fucntion CoInitialize" error message.Must I add an header?
> I thank you very much for your help
> Patrick
>
>
Technical Details
Message-ID: <3ec356d7$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3ec29751@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10698b,e6e3b761598ceb85
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2003-05-15 02:11:41 PST
From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3ec29751@newsgroups.borland.com>
Subject: Re: Error in a DLL
Date: Thu, 15 May 2003 09:58:59 +0400
Lines: 28
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.247.201.57
Message-ID: <3ec356d7$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1052989143 213.247.201.57 (15 May 2003 01:59:03 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail