J
John Doe
I have a C++/CLI assembly that exposes an event, e.g:
public ref class TestClass
{
public:
event System::EventHandler^ someEvent;
}
My main C# project references this C++/CLI assembly, and I can see the
someEvent event in the Object Browser. However, when I tried to handle the
event, VS2008 complains that someEvent does not exist. Why is this so,
perhaps I did it wrong?
TestClass obj = new TestClass();
obj.someEvent += new EventHandler(someEventHandler);
public ref class TestClass
{
public:
event System::EventHandler^ someEvent;
}
My main C# project references this C++/CLI assembly, and I can see the
someEvent event in the Object Browser. However, when I tried to handle the
event, VS2008 complains that someEvent does not exist. Why is this so,
perhaps I did it wrong?
TestClass obj = new TestClass();
obj.someEvent += new EventHandler(someEventHandler);