Re: C# and COM - creating COM events

  • From: "Tyler Littlefield" <tyler@xxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Sun, 9 Nov 2008 20:43:48 -0700

np--hope they helped. Incidentally, I think they might take a bit longer than 
15 seconds.


Thanks,
Tyler Littlefield
email: tyler@xxxxxxxxxxxxx
web: tysdomain-com
Visit for quality software and web design.
skype: st8amnd2005

  ----- Original Message ----- 
  From: Macarty, Jay {PBSG} 
  To: programmingblind@xxxxxxxxxxxxx 
  Sent: Sunday, November 09, 2008 8:40 PM
  Subject: RE: C# and COM - creating COM events 


  Tyler,

  The 15 Second articles definitely look promising. Thanks for the feedback! 

   

   

  From: programmingblind-bounce@xxxxxxxxxxxxx 
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Tyler Littlefield
  Sent: Saturday, November 08, 2008 6:38 PM
  To: programmingblind@xxxxxxxxxxxxx
  Subject: Re: C# and COM - creating COM events 

   

  Hello,

  Try this; it might help a bit.

  http://www.15seconds.com/issue/060309.htm

  this is geared toward javascript, but you can use the same ideas I think:

  
http://channel9.msdn.com/forums/Coffeehouse/130000-Exposing-C-events-using-COM-to-JavaScript/

  I think creating an interface to create the delegate over would do the trick; 
not totally sure though. That's how I would expose methods, and then just use a 
get/set function for props--not sure how those would get exposed.

  HTH,
  Thanks,
  Tyler Littlefield
  email: tyler@xxxxxxxxxxxxx
  web: tysdomain-com
  Visit for quality software and web design.
  skype: st8amnd2005

    ----- Original Message ----- 

    From: Macarty, Jay {PBSG} 

    To: programmingblind@xxxxxxxxxxxxx 

    Sent: Saturday, November 08, 2008 5:22 PM

    Subject: C# and COM - creating COM events 

     

    All,

    I have a C# program I am registering as a COM object. I have examples of 
creating properties and method calls. However, I also want this COM object to 
be able to produce events so that I can hook into those events from a VBScript 
script for Window-Eyes. 

     

    Any documentation or examples on exposing COM events from c# would be 
appreciated. 

     

Other related posts: