Hi Mayur!
> ircConnect::IrcConnection::MessageEventHandler(MyX,GlobalObjects::OnMessageIncome);
> //This is the event handler im trying to add
And what is the problem or error message?
You are already inside the "GlobalObjects" class, or?
So you can just specify:
...MessageEventHandler(MyX, OnMessageIncome);
The following works for me:
__gc class Form1 : Form
{
static void Test()
{
Form1 *f = new Form1();
f->HandleCreated += new System::EventHandler(f, TestHandler);
}
void TestHandler(Object *sender, System::EventArgs *e)
{
}
};
Greetings
Jochen
Mayur - 30 Aug 2006 08:14 GMT
Hi all,
actually the code is compiling well.but actually my function
OnMessageIncome() is not getting called when
that m_proxyChat->MessageIncome event occurs in my c# dll.
Thanking you.
> Hi Mayur!
>
[quoted text clipped - 24 lines]
> Greetings
> Jochen