Re: message pump code for COM STA
- From: "SvenC" <SvenC@xxxxxxxxxxxxx>
- Date: Fri, 11 Apr 2008 12:50:56 +0200
Hi George,
My question is not how CreateWindow/RegisterClass/WNDPROC works, but
who is responsible to write WNDPROC and register it in the case of
STA message pump for the handler for the hidden window? The question
is which party does this. I think COM Runtime does this during
CoInitialize(), right?
Yes.
Why do you ask the same questions over and over again. Igor answered this
question in "C++ COM STA model" on 24th of march. See below.
"George" <George@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:25E267B5-0538-437B-9788-AFEDB2EC2BDB@xxxxxxxxxxxxx
In COM STA model, a hidden Window will be created with synchronized
message pump operation.
Not quite. COM will create a hidden window. Your thread is responsible
for pumping messages to it (except in certain situations where COM
enters a modal message pump, e.g. when you make an out-of-apartment COM
call).
1. Who (which party) is responsible for generating code to create the
hidden Window
COM creates a hidden window in CoInitialize. I'm not sure what you mean
by "generating code".
--
SvenC
.
- Follow-Ups:
- Re: message pump code for COM STA
- From: George
- Re: message pump code for COM STA
- References:
- message pump code for COM STA
- From: George
- Re: message pump code for COM STA
- From: Igor Tandetnik
- Re: message pump code for COM STA
- From: George
- Re: message pump code for COM STA
- From: SvenC
- Re: message pump code for COM STA
- From: George
- Re: message pump code for COM STA
- From: SvenC
- Re: message pump code for COM STA
- From: George
- message pump code for COM STA
- Prev by Date: Re: auto_ptr in loop
- Next by Date: Re: in-process server considerations
- Previous by thread: Re: message pump code for COM STA
- Next by thread: Re: message pump code for COM STA
- Index(es):
Relevant Pages
|