Home All Groups Group Topic Archive Search About
Author
18 May 2006 10:55 PM
eSolTec, Inc. 501(c)(3)
I have a .NET remoting chat program that works great in a stand-alone
application. When I port it into my new application I get the following build
error:

Error    1    Method 'Public Sub SubmissionCallback(sender As Object, submitArgs
As EZRemote_VER3.SubmitEventArgs)' does not have the same signature as
delegate 'Delegate Sub SubmissionEventHandler(sender As Object, submitArgs As
ChatCoordinator.SubmitEventArgs)'.    G:\Projects\EZRemote_VER3\EZRemote_VER3\ChatClient.vb    24    53    EZRemote_VER3

I've looked at the code in the first project and it's Idential, other than I
had to make a Global Declaration on the ChatCoordinator Class (dll)

Any and all help would be greatly appreciated.

Michael

Author
19 May 2006 1:44 AM
tomb
eSolTec wrote:

Show quoteHide quote
>I have a .NET remoting chat program that works great in a stand-alone
>application. When I port it into my new application I get the following build
>error:
>
>Error    1    Method 'Public Sub SubmissionCallback(sender As Object, submitArgs
>As EZRemote_VER3.SubmitEventArgs)' does not have the same signature as
>delegate 'Delegate Sub SubmissionEventHandler(sender As Object, submitArgs As
>ChatCoordinator.SubmitEventArgs)'.    G:\Projects\EZRemote_VER3\EZRemote_VER3\ChatClient.vb    24    53    EZRemote_VER3
>
>I've looked at the code in the first project and it's Idential, other than I
>had to make a Global Declaration on the ChatCoordinator Class (dll)
>
>Any and all help would be greatly appreciated.
>
>Michael

>
The error message is telling you what is wrong!

Sub SubmissionCallback(sender As Object, submitArgs As EZRemote_VER3.SubmitEventArgs)
does not equal
Sub SubmissionEventHandler(sender As Object, submitArgs As ChatCoordinator.SubmitEventArgs)

Whatever this  EZRemote_VER3  is, it is not a   ChatCoordinator.

Delegates have to match precisely in the signature.

Tom