Dear .Net Friends...

I'm working on a project that combines both VB and C#.

I ran into a problem this weekend trying to create an
class in C# which had a method who's type was built in VB.

Previously this has worked as advertised.  However, this time
the C# compiles fine but when I try to call that method
VB *ALWAYS* complains that I don't have a reference
to the project containing the parameter's class.

Now, I know I do have that because I can say
   Dim foo as XXX

and assign a variable I know is of type XXX to it.

However, the VB compiler will not accept "foo" as
a valid parameter to that C# method.

I have tried declaring "foo" with a fully qualified
namespace name for the type XXX (e.g.  aa.bb.cc.dd.XXX)
but that makes no difference either.

Just for confirmation, I rebuilt the class
in VB instead of C# and had no problems.

Thanks,

Michael Lehman
Cereus Design Corp.
http://www.cereus7.com

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to