HighTechTalks DotNet Forums  

Not matching signatures

Dotnet Framework (CLR) microsoft.public.dotnet.framework.clr


Discuss Not matching signatures in the Dotnet Framework (CLR) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Arne Garvander
 
Posts: n/a

Default Not matching signatures - 11-21-2007 , 02:48 PM






The error below doesn't make sense to me:
Method 'Private Sub ResultCallback(Status As Boolean, cbCICSBuffer As
CclECILib.CclOBuf, cbMFReason As String)' does not have the same signature as
delegate 'Delegate Sub MFCallback(Status As Boolean, MFcicsbuf As
CclECILib.CclOBuf, MFReason As String)'.
Does it have anything to do with CclECILib.CclOBuf not being CLS-compliant?
--
Arne Garvander
Certified Geek
Professional Data Dude

Reply With Quote
  #2  
Old   
Jon Skeet [C# MVP]
 
Posts: n/a

Default Re: Not matching signatures - 11-21-2007 , 02:52 PM






Arne Garvander <ArneGarvander (AT) discussions (DOT) microsoft.com> wrote:
Quote:
The error below doesn't make sense to me:
Method 'Private Sub ResultCallback(Status As Boolean, cbCICSBuffer As
CclECILib.CclOBuf, cbMFReason As String)' does not have the same signature as
delegate 'Delegate Sub MFCallback(Status As Boolean, MFcicsbuf As
CclECILib.CclOBuf, MFReason As String)'.
Does it have anything to do with CclECILib.CclOBuf not being CLS-compliant?
Not sure - but what's the return type of the delegate and of the
method?

--
Jon Skeet - <skeet (AT) pobox (DOT) com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk


Reply With Quote
  #3  
Old   
Arne Garvander
 
Posts: n/a

Default Re: Not matching signatures - 11-21-2007 , 02:59 PM



it is a sub. It does not have an explicit return type.
I am able to run my website despite this error message. Now I am trying to
have my code to run in an NUnit test case.
--
Arne Garvander
Certified Geek
Professional Data Dude


"Jon Skeet [C# MVP]" wrote:

Quote:
Arne Garvander <ArneGarvander (AT) discussions (DOT) microsoft.com> wrote:
The error below doesn't make sense to me:
Method 'Private Sub ResultCallback(Status As Boolean, cbCICSBuffer As
CclECILib.CclOBuf, cbMFReason As String)' does not have the same signature as
delegate 'Delegate Sub MFCallback(Status As Boolean, MFcicsbuf As
CclECILib.CclOBuf, MFReason As String)'.
Does it have anything to do with CclECILib.CclOBuf not being CLS-compliant?

Not sure - but what's the return type of the delegate and of the
method?

--
Jon Skeet - <skeet (AT) pobox (DOT) com
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk


Reply With Quote
  #4  
Old   
Jon Skeet [C# MVP]
 
Posts: n/a

Default Re: Not matching signatures - 11-21-2007 , 03:04 PM



Arne Garvander <ArneGarvander (AT) discussions (DOT) microsoft.com> wrote:
Quote:
it is a sub. It does not have an explicit return type.
Oops, of course. My lack of VB bites me again I know the syntax if I
think about it, but it's not automatic for me like C# is...

Quote:
I am able to run my website despite this error message. Now I am trying to
have my code to run in an NUnit test case.
Could you post a short but complete program which demonstrates the
problem?

See http://www.pobox.com/~skeet/csharp/complete.html for details of
what I mean by that.

--
Jon Skeet - <skeet (AT) pobox (DOT) com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk


Reply With Quote
  #5  
Old   
Arne Garvander
 
Posts: n/a

Default Re: Not matching signatures - 11-21-2007 , 03:07 PM



One is a
public delegate void MFCallback(bool Status, CclOBuf MFcicsbuf, string
MFReason)

the other is
public void ResultCallback(bool Status, CclOBuf cbCICSBuffer, string
cbMFReason)

according to Reflektor.
--
Arne Garvander
Certified Geek
Professional Data Dude


"Jon Skeet [C# MVP]" wrote:

Quote:
Arne Garvander <ArneGarvander (AT) discussions (DOT) microsoft.com> wrote:
The error below doesn't make sense to me:
Method 'Private Sub ResultCallback(Status As Boolean, cbCICSBuffer As
CclECILib.CclOBuf, cbMFReason As String)' does not have the same signature as
delegate 'Delegate Sub MFCallback(Status As Boolean, MFcicsbuf As
CclECILib.CclOBuf, MFReason As String)'.
Does it have anything to do with CclECILib.CclOBuf not being CLS-compliant?

Not sure - but what's the return type of the delegate and of the
method?

--
Jon Skeet - <skeet (AT) pobox (DOT) com
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk


Reply With Quote
  #6  
Old   
Jon Skeet [C# MVP]
 
Posts: n/a

Default Re: Not matching signatures - 11-21-2007 , 03:15 PM



Arne Garvander <ArneGarvander (AT) discussions (DOT) microsoft.com> wrote:
Quote:
One is a
public delegate void MFCallback(bool Status, CclOBuf MFcicsbuf, string
MFReason)

the other is
public void ResultCallback(bool Status, CclOBuf cbCICSBuffer, string
cbMFReason)

according to Reflektor.
It certainly looks okay - is it definitely the same CclOBuf? I'm
wondering if one is from one assembly and one is from a different
one...

If you take out (just for test purposes) the middle parameter, does it
compile?

--
Jon Skeet - <skeet (AT) pobox (DOT) com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk


Reply With Quote
  #7  
Old   
Arne Garvander
 
Posts: n/a

Default RE: Not matching signatures - 11-21-2007 , 05:53 PM



I rewrote my test program in C# and my compilation error mysteriously
disappered.
The code that I am testing is still in VB 8.

--
Arne Garvander
Certified Geek
Professional Data Dude


"Arne Garvander" wrote:

Quote:
The error below doesn't make sense to me:
Method 'Private Sub ResultCallback(Status As Boolean, cbCICSBuffer As
CclECILib.CclOBuf, cbMFReason As String)' does not have the same signature as
delegate 'Delegate Sub MFCallback(Status As Boolean, MFcicsbuf As
CclECILib.CclOBuf, MFReason As String)'.
Does it have anything to do with CclECILib.CclOBuf not being CLS-compliant?
--
Arne Garvander
Certified Geek
Professional Data Dude

Reply With Quote
  #8  
Old   
Jon Skeet [C# MVP]
 
Posts: n/a

Default RE: Not matching signatures - 11-21-2007 , 06:22 PM



Arne Garvander <ArneGarvander (AT) discussions (DOT) microsoft.com> wrote:
Quote:
I rewrote my test program in C# and my compilation error mysteriously
disappered.
The code that I am testing is still in VB 8.
But do you have a short but complete program in VB that's still
failing? That should be enough to find out what's going on,
hopefully...

--
Jon Skeet - <skeet (AT) pobox (DOT) com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.