Re: Event Handler help



I'd have to see all of the relevant code in order to diagnose the problem.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

<kevinforbes@xxxxxxxxx> wrote in message
news:1177717852.126267.10300@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
And this method signature matches its delegate. The signature was even
automatically generated by intellisense....



On Apr 27, 5:50 pm, "Kevin Spencer" <unclechut...@xxxxxxxxxxxx> wrote:
All Event Handler method signatures must match the method signatures of
the
delegates they are designed for.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:http://www.miradyne.net

<kevinfor...@xxxxxxxxx> wrote in message

news:1177706927.326821.101900@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx



Hi All,

I'm a little rusty on my C# so any help would be much appreciated.

.net 2.0, C#, using a COM object with events

I have a COM object (built in C++) that throws various telephony
events with a signature as follows:

o.evCallOriginatedEvent += new
M_COMLib._ImObjEvents_evCallOriginatedEventEventHandler(evCallOriginatedEve­nt);

void evCallOriginatedEvent(int hMonitorObj, int state, int cause, int
callId, int evNumber, string evTime, int workTimer)

the following code works fine in VB.NET apps i have done, but the
above C# code is not working for me, am i missing something?

VB.NET CODE:
Private Sub M_evCallOriginatedEvent( _
ByVal hMonitorObj As Integer, _
ByVal state As Integer, _
ByVal cause As Integer, _
ByVal callId As Integer, _
ByVal evNumber As Integer, _
ByVal evTime As String, _
ByVal workTimer As Integer) _
Handles m.evCallOriginatedEvent

Does C# require that all event handlers are in the format: void
evtHandler(object sender, EventArgs e) ?

thank you,
KF- Hide quoted text -

- Show quoted text -



.



Relevant Pages

  • Re: Button with arrowdown (acting as a combobox)
    ... In that case, create a button that has an arrow on it, and put it next to ... Kevin Spencer ... FTP Client Classes, Enhanced Data Controls, much more. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: static background
    ... FTP Client Classes, Enhanced Data Controls, much more. ... DSI PrintManager, Miradyne Component Libraries:http://www.miradyne.net ...
    (microsoft.public.frontpage.programming)
  • Re: 404 not found
    ... Can you quote the IIS log file? ... Kevin Spencer ... FTP Client Classes, Enhanced Data Controls, much more. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Visual Web Developer 2005 vs. Microsoft Expression
    ... Kevin Spencer ... FTP Client Classes, Enhanced Data Controls, much more. ... DSI PrintManager, Miradyne Component Libraries:http://www.miradyne.net ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: directory class
    ... FTP Client Classes, Enhanced Data Controls, much more. ... DSI PrintManager, Miradyne Component Libraries: ...
    (microsoft.public.dotnet.framework)

Loading