1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

What is a dll?

Discussion in 'Software Development' started by peterc, Apr 5, 2004.

Thread Status:
Not open for further replies.
Advertisement
  1. peterc

    peterc Thread Starter

    Joined:
    Feb 2, 2004
    Messages:
    57
    I'm trying to understand what a dll is. I have read the MS article 815065 INFO: What Is a DLL?

    I have seen many different dll terms: com dll, c/c++ dll, activex dll, win32 dll and different extensions: .dll, .ocx, .drv., .cpv. What are the difference between all those terms? What are those extensions mean?


    Thank you for any help,

    Peter
     
  2. AbvAvgUser

    AbvAvgUser

    Joined:
    Oct 3, 2002
    Messages:
    2,281
    To start with, I have limited knowledge and may be wrong somewhere in my reply. So please keep that in mind.

    .dll stands for Dynamically Linked Libraries. They contain some functions that can be reused by some other applications. For example lets say there is a file called date.dll which contains functions to convert between different date format, function to find out the current system date format, etc. Now you would like to use this in almost all the applications you develop. So rather than including them in all the applications, you would keep them in an external dll file and use it from all the applications. Advantages will be that sizes of the applications will not bloat, secondly updation will be very convenient. If you find some error in date conversion function, just replace the dll file and all applications will be updated.

    .ocx are ActiveX Controls. For example, for a VB programmer, all the things that they can put on a form (and also many other things) are activeX controls. They carry with them properties and methods associated with it which gives convenience to the users. Reusability is the key here.

    .drv are device drivers. Software needs to interact with hardware. It is done through the device drivers. In simpler terms, software and hardware uses different languages. .drv files are the interpreters :)

    I don't know what are .cpv files :rolleyes:
     
  3. peterc

    peterc Thread Starter

    Joined:
    Feb 2, 2004
    Messages:
    57
    Hi AbvAvgUser,

    Thank you for the information.

    According to that MS article, files with extension like .dll, .ocx, .cpl, .drv are all DLLs.

    Are activex dll and activex control (.ocx) the same thing?

    .cpv should be .cpl.
     
  4. AbvAvgUser

    AbvAvgUser

    Joined:
    Oct 3, 2002
    Messages:
    2,281
    .cpl are control panel files. All the files that appear in Control Panel exist as .cpl files in the Windows\System.

    Yes, in a way all the files are same, but there are some basic minute differences in them as I pointed out. The main purpose behind all these is re-usability without re-coding and convenience in case of a need to change due to error or upgradation.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/217190

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice