Hm, now - the VB project trying to cal the C# function - is it in another project referencing BOTH assemblies?
Is the C# class not a CLS class for another reason? Other parameters? Don't forget that VB is not "feature complete" but only CLS. Regards Thomas Tomiczek THONA Consulting Ltd. (Microsoft MVP C#/.NET) -----Original Message----- From: Michael Lehman [mailto:[EMAIL PROTECTED]] Sent: Montag, 13. Mai 2002 15:50 To: [EMAIL PROTECTED] Subject: Re: [DOTNET] C#/VB Interop Problems At 03:39 PM 5/13/2002 +0200, you wrote: >One moment - I smell a mistake here :-) I would be very happy if you/we could find one! >(a) you have a class in C# that is having a parameter (class or struct) >defined in a VB assembly. Yes, this is true. The VB code uses this Class type extensively with other VB classes. >(b) you say that VB (!) complains about not having a reference to the >project containing the parameter's class? > >For the error - where exactly does C# come into play, as just being a >user of the function. The error, obviously according to your saying in >(b), is already there in VB. C# is defining the function, having an argument of the VB class type. I can call it from other C# classes but I cannot get the VB compiler to call it either within or without the same namespace. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.