Welcome to Dream.In.Code
Getting Help is Easy!

Join 117,162 Programmers for FREE! Ask your question and get quick answers from experts. There are 2,423 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



dll's and there usefullness

 
Reply to this topicStart new topic

dll's and there usefullness, Why Lord Why!?!?

Mr_Mom
post 30 Jun, 2008 - 12:25 PM
Post #1


New D.I.C Head

*
Joined: 21 May, 2008
Posts: 28


My Contributions


Hello,

So, The program that I have inherited is a vb.net, 2.0 framework Web App. They use a couple of dll's for the Data Access Layer. Could someone(s) offer some insight on why I should leave it this way. What are the benefits of using a dll. Why not just leave it in the compiled code as a normal class? I will freely admit I have not worked with dll's before so please feel free to enlighten me and or discuss this as I am very curious.

Thanks,
User is offlineProfile CardPM

Go to the top of the page


no2pencil
post 8 Jul, 2008 - 02:00 AM
Post #2


Wet D.I.C.

Group Icon
Joined: 10 May, 2007
Posts: 5,388



Thanked 35 times

Dream Kudos: 2325

Expert In: Goofing Off

My Contributions


QUOTE(Mr_Mom @ 30 Jun, 2008 - 03:25 PM) *

Could someone(s) offer some insight on why I should leave it this way.

A dll will be compiled from source code, so when you have the dll, you will not have access to the original source code to simply add in. The benefit to using a dll is reusable code. A developer writes a function & compiles it as a dll, then a 2nd program will load the dll into memory & can call the function. Say for example you wanted to clear the screen. Rather that recreate the wheel in every program you ever write, you can load the dll with the functionality, & simply request for the screen to be cleared, wah-lah. Empty screen every time. This way your source code is much more manageable, & you don't have to write a function to clear the screen in every program you write. Your binary executable will now be smaller & load faster, as well as previously stated, the code will be more manageable.
User is offlineProfile CardPM

Go to the top of the page

Mr_Mom
post 8 Jul, 2008 - 06:27 AM
Post #3


New D.I.C Head

*
Joined: 21 May, 2008
Posts: 28


My Contributions


Thanks, I guess my follow up question to that answer would be:

Rules of thumb for what should become a dll?

Should I be stuffing as much generic functionality as possible?

I would greatly appreciate any insight from the vast pool of experience around here.

Thanks #2...
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 10/6/08 11:05AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month