
Signature
Arne Garvander
Certified Geek
Professional Data Dude
> 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?

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
Arne Garvander - 21 Nov 2007 19:59 GMT
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.

Signature
Arne Garvander
Certified Geek
Professional Data Dude
> > The error below doesn't make sense to me:
> > Method 'Private Sub ResultCallback(Status As Boolean, cbCICSBuffer As
[quoted text clipped - 5 lines]
> Not sure - but what's the return type of the delegate and of the
> method?
Jon Skeet [C# MVP] - 21 Nov 2007 20:04 GMT
> 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...
> 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.

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
Arne Garvander - 21 Nov 2007 20:07 GMT
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.

Signature
Arne Garvander
Certified Geek
Professional Data Dude
> > The error below doesn't make sense to me:
> > Method 'Private Sub ResultCallback(Status As Boolean, cbCICSBuffer As
[quoted text clipped - 5 lines]
> Not sure - but what's the return type of the delegate and of the
> method?
Jon Skeet [C# MVP] - 21 Nov 2007 20:15 GMT
> One is a
> public delegate void MFCallback(bool Status, CclOBuf MFcicsbuf, string
[quoted text clipped - 5 lines]
>
> 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?

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
I rewrote my test program in C# and my compilation error mysteriously
disappered.
The code that I am testing is still in VB 8.

Signature
Arne Garvander
Certified Geek
Professional Data Dude
> 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?
Jon Skeet [C# MVP] - 21 Nov 2007 23:22 GMT
> 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...

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