Re: doubts in com threading model
- From: "Alexander Nickolov" <agnickolov@xxxxxxxx>
- Date: Tue, 23 Oct 2007 09:35:51 -0700
Conveniently taking quotes out of context won't help you in the
slightest. Please read the entire sentence in my previous reply.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://vcfaq.mvps.org
=====================================
"Alex" <Alex@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C170B39F-5139-45E8-841B-E8E55532B827@xxxxxxxxxxxxxxxx
Thank you Alexander Nickolov.
an out-of-proc ATL COM server the attributes in the new
COM object wizard do not specify the threading model,
As of my understanding from above sentence,
I created ATL COM Exe and inserted new atl com object. In
"ATL
Object Wizard", I must select any one of the threading model out of
Single,
Apartment, Free and Both.
Here, How can I skip the threading for ATL Server.
Sorry Alexander If I am wrong.
--
Thanks & Regards,
Alex.
"Alexander Nickolov" wrote:
Additionally to the link Igor gave you, please realize that for
an out-of-proc ATL COM server the attributes in the new
COM object wizard do not specify the threading model, but
there _you_ tell the wizard what is your server's threading model
so it can generate the object's IUnknown implementation
correctly.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://vcfaq.mvps.org
=====================================
"Alex" <Alex@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7CF1AE16-ACD1-46B5-A26D-2715A577DDC5@xxxxxxxxxxxxxxxx
Hi,
While creating atl com component, we have to set some attributes
like
apartment, single, free or both. Why?
While creating com object, we are specifying the apartment model by
CoInitializeEx(NULL,COINIT_APARTMENTTHREADED) or
CoUninitialize(NULL,COINIT_MULTITHREADED) API's.
If I create a com component with "free" attribute,
then if I create object in Single Threaded Apartment
then What will happen?
--
Thanks & Regards,
Alex.
.
- References:
- Re: doubts in com threading model
- From: Alexander Nickolov
- Re: doubts in com threading model
- From: Alex
- Re: doubts in com threading model
- Prev by Date: Re: doubts in com threading model
- Next by Date: Re: Web Browser Hosting and 3rd Party Add-ons
- Previous by thread: Re: doubts in com threading model
- Next by thread: RE: Getting Outlook folder name/path when dropping a message in MFC?
- Index(es):
Relevant Pages
|