ActiveX Interop Question about Events

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I have imported an ActiveX control and I'm trying to use it inside a C#
class. The problem is that since the event handlers are required to be
"static" functions, I can't reference the instance members of my class from
inside them.

As of now, it gives me compile errors because I am referencing
non-static members from the static event handlers.

Is there a simple solution to this that will allow me to use my
instance members from inside my static event handlers?

Thank you very much,
Rich
 
The problem is that since the event handlers are required to be
"static" functions,

Why are they required to be static? The platform or language doesn't
have any such requirement.



Mattias
 
Back
Top