locked
Questions on ATL and COM RRS feed

  • Question

  • I have a couple of questions about developing an out-of-proc (local) COM server using ATL. 

    I need to figure out how to make the server function as a single instance.  Currently, any call by a client app to CoCreateInstance will launch a new instance of my server.  Is there a macro or define that I am missing?

    I am also having trouble getting QueryInterface to work properly on an exposed class.  I can only get a IUnknown ptr to my object.  If the client calls QueryInterface to get a different interface, I can see via traces that the QI call on my object (in the exe) succeeds, but the call in the client is returning E_NOINTERFACE.

    Where is the best place to go for answers?

    Thanks.

    Wayne
    Friday, July 10, 2009 9:29 PM

Answers