Solved

c# namespace error

Posted on 2013-02-01
2
321 Views
Last Modified: 2013-02-04
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
Comment
Question by:NJJoeG8GT
2 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 350 total points
ID: 38843929
can you show the line?
I presume you put:
using GCTLibrary.GCTInternal;

and it should only be:
using GCTLibrary;
0
 
LVL 13

Assisted Solution

by:jonnidip
jonnidip earned 150 total points
ID: 38843937
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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now