🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TADOConnection in Win32 Service

#3109
From: Maynard Philbrook
Date: Wed, 18 Dec 2002 06:39
21 lines
1575 bytes
if your multi threading you need to first call the Cointiate.... in the
thread before create the ADO object and connection. etc..
 and then CoUn..... before you leave the thread.


Sergey Muschin wrote:

> Oops!
>
> Forgot to say, that right now i'm using
>
>     CoInitializeEx(NULL,COINIT_MULTITHREADED);
>
> when service starts and
>
>       CoUninitialize();
>
> when it stops. Is it a right way to go?
>
> Regards,
> Sergey Muschin
Technical Details
Message-ID: <3E00182B.79DD897A@mindspring.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed2.earthlink.net!newsfeed1.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!not-for-mail
References: <3dffbad1$1@newsgroups.borland.com> <3dffc112$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,edbe6bb6c97a37e2
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2002-12-17 22:22:37 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed2.earthlink.net!newsfeed1.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!not-for-mail
From: Maynard Philbrook <jamie12@mindspring.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: TADOConnection in Win32 Service
Date: Wed, 18 Dec 2002 01:39:39 -0500
Organization: PC BIT Software
Lines: 22
Message-ID: <3E00182B.79DD897A@mindspring.com>
References: <3dffbad1$1@newsgroups.borland.com> <3dffc112$1@newsgroups.borland.com>
Reply-To: jamie12@mindspring.com
NNTP-Posting-Host: 44.76.b2.8b
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Server-Date: 18 Dec 2002 06:22:29 GMT
X-Mailer: Mozilla 4.5 [en]C-CCK-MCD {TLC;RETAIL}  (Win98; U)
X-Accept-Language: en,ja