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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top