all groups > dotnet clr > november 2007 >
You're in the

dotnet clr

group:

Not matching signatures


Not matching signatures Arne Garvander
11/21/2007 11:48:02 AM
dotnet clr:
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
Re: Not matching signatures Arne Garvander
11/21/2007 11:59:03 AM
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


[quoted text, click to view]
Re: Not matching signatures Arne Garvander
11/21/2007 12:07:02 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


[quoted text, click to view]
RE: Not matching signatures Arne Garvander
11/21/2007 2:53:00 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


[quoted text, click to view]
Re: Not matching signatures Jon Skeet [C# MVP]
11/21/2007 7:52:24 PM
[quoted text, click to view]

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

--
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
Re: Not matching signatures Jon Skeet [C# MVP]
11/21/2007 8:04:39 PM
[quoted text, click to view]

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...

[quoted text, click to view]

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@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
Re: Not matching signatures Jon Skeet [C# MVP]
11/21/2007 8:15:05 PM
[quoted text, click to view]

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@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
RE: Not matching signatures Jon Skeet [C# MVP]
11/21/2007 11:22:58 PM
[quoted text, click to view]

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@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
AddThis Social Bookmark Button