Hi,
What is exactly problem you have? I didn't try this code but at first look
it seems fine (except "Tring" delegate declaration differs from IMyEvts
one - it uses object for "argData" argument type instead of string one).
In case you don't know how to handle events on script side please see
"Scripting Events" MSDN article
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnclinic/html/s
cripting04092001.asp
..
Cheers,
Vadim.
> Hi,
> I have created a C# dll. I want to catch all the events fired by the
[quoted text clipped - 41 lines]
> Thanks,
> Sumit
Sumit - 29 Sep 2003 19:40 GMT
Hi Vadim,
I have the VBScript code working too. its just that I
cannot catch the event. I added a piece of code in the dll
public void CallRing(){
if(Tring != null)
Tring("Sumit");
else
System.Windows.Forms.MessageBox.Show ("Cannot call the
event", "My Application", MessageBoxButtons.OKCancel,
MessageBoxIcon.Asterisk);
}
Then when I call the Call ring function from VBScript I
get the messagebox. Could you tell me what am i missing?.
I called the same dll in VB and it works.
-SUmit
>-----Original Message-----
>Hi,
>
[quoted text clipped - 57 lines]
>
>.