I have two files that use the same namespace

  • 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
 
Hi,
Is the CS code in a different dll and do you add a reference to this dll
in the VB project?


Anand Balasubramanian
Microsoft, Visual Basic .NET

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only. Thanks
 
Back
Top