• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 350
  • Last Modified:

c# namespace error

i have working c# module.  i was given a VB dll to add to my Project References.  I need to call some function from this DLL.

but i get an error:

Error      1      A using namespace directive can only be applied to namespaces; 'GCTLibrary.GCTInternal' is a type not a namespace

how can resolve this reference error?
0
NJJoeG8GT
Asked:
NJJoeG8GT
2 Solutions
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
can you show the line?
I presume you put:
using GCTLibrary.GCTInternal;

and it should only be:
using GCTLibrary;
0
 
jonnidipCommented:
I would suggest you to take a look at the .dll content by using a .net decompiler like this: http://www.jetbrains.com/decompiler/.
You may easily find the correct namespace inside the dll.

Regards.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now