C++ COM STA model

Discussion in 'C Programming' started by George2, Mar 24, 2008.

  1. George2

    George2

    Joined:
    Feb 12, 2008
    Messages:
    108
    Hello everyone,


    In COM STA model, a hidden Window will be created with synchronized message pump operation. I have seen and debugged a couple of samples. My quesitons are,

    1. Who (which party) is responsible for generating code to create the hidden Window and generate message pump (retrieve message one-by-one from message queue so that all processing to the component is synchronized)? Generated by COM Runtime (I suspect it generated by COM Runtime, because I have seen no code in the samples I studied to explicitly create the hidden Window)?

    2. If it is created by the COM Runtime? When such code is generated? During call to CoInitializeEx and when specifiying parameter value for dwCoInit (COINIT_APARTMENTTHREADED or COINIT_MULTITHREADED)?

    3. Where is the generated binary code? Injected by linker in the result COM DLL or EXE?


    thanks in advance,
    George
    George2, Mar 24, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. pfurb

    Microsoft Help: IEExe.exe and STA

    pfurb, Jan 19, 2004, in forum: ASP .Net
    Replies:
    7
    Views:
    558
    Jeff B.
    Jan 20, 2004
  2. pfurb
    Replies:
    0
    Views:
    516
    pfurb
    Jan 21, 2004
  3. Crimson_M

    Design Flow: STA to Synthesis

    Crimson_M, Sep 8, 2003, in forum: VHDL
    Replies:
    1
    Views:
    777
    Brian Drummond
    Sep 9, 2003
  4. Peter Strøiman

    Getting asp.net to run in an STA?

    Peter Strøiman, Feb 13, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    445
    Shahar
    Feb 13, 2004
  5. =?Utf-8?B?UmF1bA==?=

    Re: Using STA API in a MTA enviroment

    =?Utf-8?B?UmF1bA==?=, Sep 17, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    421
    =?Utf-8?B?UmF1bA==?=
    Sep 17, 2004
Loading...

Share This Page