Two files that use the same namespace problem

  • Thread starter Thread starter SamSpade
  • Start date Start date
S

SamSpade

I have two files that use the same namespace, CAG.LibraryNS
The first is a CS file
The second is a VB file

The CS file defines a class, CsWinApi

The VB file tries to call a method in the CS file
hResult = CAG.LibraryNS.CsWinApi.SHGetMalloc(ShellMalloc)

But gets the error: CsWinApi is not a member of LibraryNS

Any idea what might be wrong??



Thanks
 
SameSpade,
Did you reference the C# project from the VB.NET project? (either the
project itself or the dll created).

Do you have an root namespace defined in the VB.NET project?

Hope this helps
Jay
 
Yes, I got it working - thanks a lot

Jay B. Harlow said:
SameSpade,
Did you reference the C# project from the VB.NET project? (either the
project itself or the dll created).

Do you have an root namespace defined in the VB.NET project?

Hope this helps
Jay
 
Back
Top