By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,663 Members | 1,194 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,663 IT Pros & Developers. It's quick & easy.

ActiveX Interop Question about Events

P: n/a
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
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.