Solved

linking in a dll issue

Posted on 2009-05-18
2
160 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Introduction In this tutorial, I'll explain how to create an animated progress meter in a wireframe prototype developed using Axure RP 7.0 - a leading prototyping tool for designing web sites and software. (For more information about Axure and gett…
The purpose of this video is to demonstrate how to create a Printer Friendly PDF on a WordPress Page. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome Screenshot” Google Chrome Extension, and SmallPDF.com Log…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

911 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

23 Experts available now in Live!

Get 1:1 Help Now