Solved

linking in a dll issue

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

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

Suggested Solutions

Turn A Profile Picture Into A Cartoon Using Photoshop And Illustrator This tutorial will teach you how to make a cartoon style image out of a regular picture. I have tried to keep the tutorial as simple as possible. I used Adobe CS4 for this tuto…
This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
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 make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…

758 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

21 Experts available now in Live!

Get 1:1 Help Now