Generating a .dll file

Hi all,

How do i make my class into a .dll file? What exactly is a dll file? Is it just containing something from a class or it could contain an entire name space?

HOw do i use a dll file? Just adding a reference to it?
eturfclubAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Alexandre SimõesManager / Solutions ArchitectCommented:
[1] - What exactly is a dll file?
Is Dynamic Link Library, a set of functions that can be executed, or data that can be used by a Windows application. DLL is also the file type for DLL files. For example, 'crypt32.dll' is the Crypto API32 DLL used for cryptography on Microsoft operating systems. There are hundreds and possibly thousands installed on your computer. Some DLLs are used only by a specific application, while others, such as crypt32.dll, are used by a wide variety of applications. The name refers to the fact that DLL's contain a library of functions that can be accessed (linked) on demand

[2] - How do i make my class into a .dll file?
Just create a new Class Library Project on your Solution.
This will produce a Dll.

[3] - Is it just containing something from a class or it could contain an entire name space?
I can contain anything a "normal" Windows Application Project can.
The big difference is that it can't be started directly. It can only be referenced.

[4] - HOw do i use a dll file? Just adding a reference to it?
Yep.
On VS you can make a reference directly to the *.dll file or, reference the project (Projects tab)


Alex :p

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
eturfclubAuthor Commented:
oh... thanks lots... Thanks... =D
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.