Results 1 to 2 of 2

Thread: Why we make a DLL file

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2010
    Posts
    24

    Why we make a DLL file

    Dear Friends.

    I am working in VB.Net 2008 from two years. I have a serious confusion. I want to know that why we write classes and functions etc in a separate DLL file and then use it in our EXE, while we can write these classes and functions directly in our EXE file.
    Can some one Plz give me a brief answer of my question.

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Why we make a DLL file

    Let me put it this way... what if Microsoft decided that the ADO.NET shouldn't be in its own DLL, and just shoved it straight into the IDE exe? You would no longer be able to set a reference to ADO.NET and use it. You would be forced to write all of your own database connection code yourself. From scratch. Everytime.

    Same thing about any other DLL... the idea is that you can write it once, compile it and use it anywhere else. Yes, you could in theory write everything all in one app. For small apps, that's probably fine... the stuff I work on has tens of thousands of lines of code... I don't think we really want to put that all into one project. It would get tangled up and become a mess. Also, if we make a change to one part of the app, we can simply replace that one DLL with out having to touch or redeploy the exe.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width