Registration Free COM - Events

Traitée Registration Free COM - Events

  • mardi 17 avril 2012 11:26
     
     

    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

Toutes les réponses

  • mardi 17 avril 2012 21:16
     
     Traitée

    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

    • Marqué comme réponse Mike Curley mercredi 18 avril 2012 13:02
    • Non marqué comme réponse Mike Curley mercredi 18 avril 2012 13:05
    • Marqué comme réponse Mike Curley mercredi 18 avril 2012 13:05
    •  
  • mercredi 18 avril 2012 13:08
     
     

    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