Solved

c# namespace error

Posted on 2013-02-01
2
333 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 143

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

690 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