Solved

Creating Class Library in Visual C#

Posted on 2013-12-23
4
341 Views
Last Modified: 2014-01-06
I am trying to following this sameple and using dll in my vb.net project, just for testing. I am using VS2008 3.5. I added it to Reference.

dim test as new Classlibrary1.class1 < this won't work.



C#
ee.jpg
0
Comment
Question by:VBdotnet2005
[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
4 Comments
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 39737050
Looks like you've created a private class ensure you have the public keyword before the class i.e.

namespace ClassLibrary1
{
    public class class1
    {

     }
}

Open in new window

0
 
LVL 75

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 250 total points
ID: 39737126
For correctness, the default (i.e. when you don't explicitly specify) access modifier for classes is internal, not private. You would not be able to see any internal members outside of the assembly containing that class--unless you include a special attribute.
0
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 250 total points
ID: 39737145
@kaufmed thanks for the clarification, I wasn't aware of that I assumed it was private, but then I always specify access modifiers as a matter of course.

@vbdotnet2005

Here's some info on the differences between the access modifiers :

Access Modifiers
0
 

Author Comment

by:VBdotnet2005
ID: 39760301
excellent !!! Thank you
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

691 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