Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / November 2007

Tip: Looking for answers? Try searching our database.

Not matching signatures

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Arne Garvander - 21 Nov 2007 19:48 GMT
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?
Signature

Arne Garvander
Certified Geek
Professional Data Dude

Jon Skeet [C# MVP] - 21 Nov 2007 19:52 GMT
> 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

Arne Garvander - 21 Nov 2007 22:53 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.

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


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.