locked
Registration Free COM - Events RRS feed

  • Question

  • I have implemented synchronous Registration Free COM, as described in Steve Whites article (both client and server in unmanaged C++)

    My question is :

    Is it possible to handle COM events Registration Free in an unmanaged scenario?

    If so, presumably it would be implemented by additional entries in manifest files?

    And, if so, does anyone know how to do it, or can point me at an example?

    Thanks

    Tuesday, April 17, 2012 11:26 AM

Answers

  • Mike Curley wrote:

    I have implemented synchronous Registration Free COM, as described in  Steve Whites article (both client and server in unmanaged
    C++)

    My question is :

    Is it possible to handle COM events Registration Free in an unmanaged  scenario?

    If by COM events you mean connection points (IConnectionPointContainer  et al), then those don't require any registration in the first place. It  doesn't matter how you created an instance of a COM object, whether it  was registered or otherwise - you advise your event sinks to it the same  way.


    Igor Tandetnik

    • Marked as answer by Mike Curley Wednesday, April 18, 2012 1:02 PM
    • Unmarked as answer by Mike Curley Wednesday, April 18, 2012 1:05 PM
    • Marked as answer by Mike Curley Wednesday, April 18, 2012 1:05 PM
    Tuesday, April 17, 2012 9:16 PM

All replies

  • Mike Curley wrote:

    I have implemented synchronous Registration Free COM, as described in  Steve Whites article (both client and server in unmanaged
    C++)

    My question is :

    Is it possible to handle COM events Registration Free in an unmanaged  scenario?

    If by COM events you mean connection points (IConnectionPointContainer  et al), then those don't require any registration in the first place. It  doesn't matter how you created an instance of a COM object, whether it  was registered or otherwise - you advise your event sinks to it the same  way.


    Igor Tandetnik

    • Marked as answer by Mike Curley Wednesday, April 18, 2012 1:02 PM
    • Unmarked as answer by Mike Curley Wednesday, April 18, 2012 1:05 PM
    • Marked as answer by Mike Curley Wednesday, April 18, 2012 1:05 PM
    Tuesday, April 17, 2012 9:16 PM
  • Igor,

    Many thanks for your reply. Your answer gave me the confidence to push on. Eventually managed to get COM Events ( connection points ) working now with a Registration Free COM object. Problem eventually tracked down to the Apartments.

    Regards,

    Mike Curley

    Wednesday, April 18, 2012 1:08 PM