Error on Build

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
eSolTec said:
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
 
Back
Top