Solved

linking in a dll issue

Posted on 2009-05-18
2
163 Views
Last Modified: 2012-05-07
Why does visual studio think my dll is a friend.  I have built and successfully compiled a dll using visual studio 2008 and i have another dll that needs to reference it.  I have added it to the reference folder through the GUI, along with other dlls that work mind you.  In the code when i try to call it it says it is private.  Intellisense doesnt even find the class.  So did I add this one dll that i built incorrectly?
0
Comment
Question by:hanleywood
2 Comments
 
LVL 11

Expert Comment

by:saragani
ID: 24416031
Does the class that try to write the code in has a Using NameSpace.Something?
(So your classes will appear in the Intellisense without you having to write the namespace before each class/enum you try to use)
0
 
LVL 9

Accepted Solution

by:
tculler earned 500 total points
ID: 24416728
You either nested your classes within another namespace, or you nested your classes within another class. Nested classes are, by default, set to private. Make everything you wish to access outside of the DLL as "public" or "protected".
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
The purpose of this video is to demonstrate how to prevent comment spam on a WordPress Website. This will be demonstrated using a Windows 8 PC. Plugin Akismet will be used. Go to your WordPress login page. This will look like the following: myw…

733 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