Hello everyone,
1.
For message pump code for COM STA, my question is, we just need to copy and
past the following code to STA owner thread, no need to implement any
functions to handle msg (e.g. hidden window message handler)?
(I think no need and I think COM Runtime will plug-in a message handler for
the hidden window, to process the msg and call related function
automatically?)
[Code]
MSG msg;
while (GetMessage (&msg, 0, 0, 0))
DispatchMessage (&msg);
[/Code]
2.
If all the message pump code are common, why not COM automatically generates
the code for all STA? Because some STA has the requirement of not handling
in-coming calls from other apartment?
thanks in advance,
George