Re: doubts in com threading model

Tech-Archive recommends: Speed Up your PC by fixing your registry



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.





.



Relevant Pages

  • Re: ATL need Runtime DLLs?
    ... "Alexander Nickolov" wrote: ... The ATL class itself can be compiled in. ... Microsoft MVP, MCSD ... Does class: CComSafeArray need runtime Dlls? ...
    (microsoft.public.vc.atl)
  • Re: How to render word file inside ATL Lite Control
    ... Alexander Nickolov ... > 2.How do i achive this using different approach of ATL? ... You need to implement your own site object to pass ... >> Microsoft MVP, MCSD ...
    (microsoft.public.vc.atl)
  • Re: Is ATL supported on Linux
    ... These were introduced in ATL 3.0. ... Especially if you port for use with wine. ... Microsoft MVP, MCSD ... "Alexander Nickolov" wrote: ...
    (microsoft.public.vc.atl)
  • Re: ATL need Runtime DLLs?
    ... The ATL class itself can be compiled in. ... Microsoft MVP, MCSD ... Does class: CComSafeArray need runtime Dlls? ... "Alexander Nickolov" wrote: ...
    (microsoft.public.vc.atl)
  • Re: LVN_ITEMCHANGING, how can I get it to cancel the change?
    ... _bstr_t allocates the memory for me but it doesn't. ... "Alexander Nickolov" wrote: ... Microsoft MVP, MCSD ... the caller becuase the setWindowLong is in the case:default. ...
    (microsoft.public.win32.programmer.ole)