🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11658

Re: CoInitializeEx

#11658
From: nicolasr
Date: Wed, 28 Jan 2004 11:44
23 lines
2010 bytes
Hi,

> Officially, you're actually supposed to be setting the option in the ATL
> section of the Project Options.  Setting the CoInitFlags manually in code
is
> actually a hack for a bug in the IDE that doesn't always apply the
> appropriate ATL settings correctly.
In my project options I can't find any options for ATL. The help file says
that
ATL options are available if the project contains a COM server. But my
component is the COM client in this case. Is this the bug you mention.
Shouldn't
the ATL options be always available in case a project is a COM client?

> A better approach, and one that you can keep inside your own code, is to
> have the component spawn a separate thread internally to do the actual COM
> work.  Then you can initialize the thread however you want regardless of
how
> the calling thread is initialized.
That sounds very good. I will give it a try.

thanks,
Nick
Technical Details
Message-ID: <4017a0ac$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4012ffb1$1@newsgroups.borland.com> <40150765$1@newsgroups.borland.com> <40155c5b@newsgroups.borland.com> <4016278c$2@newsgroups.borland.com> <4016bfc8$1@newsgroups.borland.com> <40171ad2$1@newsgroups.borland.com> <401725d4$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,415206d9c16e00b1
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-28 03:55:44 PST
From: "nicolasr" <nicolasrNOSPAMATSIGNgmx.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References:  <4012ffb1$1@newsgroups.borland.com> <40150765$1@newsgroups.borland.com> <40155c5b@newsgroups.borland.com> <4016278c$2@newsgroups.borland.com> <4016bfc8$1@newsgroups.borland.com> <40171ad2$1@newsgroups.borland.com> <401725d4$1@newsgroups.borland.com>
Subject: Re: CoInitializeEx
Date: Wed, 28 Jan 2004 12:44:36 +0100
Lines: 25
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.133.173.55
Message-ID: <4017a0ac$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1075290284 80.133.173.55 (28 Jan 2004 03:44:44 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail