hello all,
I need to hook some event handler in Managed C++code into event, that is
declared, and is fired in C# code.
as i understand, this maybe achieved via __hook, but when i write code like
this
__hook(&SomeControl::SomeEvent:, controlInstance,
&CSomeClass::EventHandler);
i get an error that the event handler method must have the same paremeters
as delegate.
my method's params are :
(System::Object __gc * sender, System::EventArgs __gc * e)
and the delegates:
(object sender, EventArgs e)
what can be wrong ?