Thread: What is a DLL (Dynamic Link Library)

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    70

    What is a DLL (Dynamic Link Library)

    What is a DLL & what is it used for??

    And if i made a DLL, with Visual C++ 6, could i use it on any OS??

    if not, how could i make a DLL useable on any OS??

    ciao

  2. #2
    Registered User
    Join Date
    Oct 2002
    Posts
    26
    DLL (dynamic-link library)

    A file that contains one or more functions that are compiled,

    linked, and stored separately from the processes that use them.

    The operating system maps the DLLs into the address space of

    the calling process when the process is starting or while it's running.


    that's all i can tell u right now
    C++ Is cool

  3. #3
    Registered User
    Join Date
    Sep 2002
    Posts
    70
    So a DLL is a collection of functions, that programs can use, so the DLL could've been written in C++, but a Pascal program can use it Right??

    Can i compile DLL's that can be used on any OS using Visual C++ 6?? If not, can i do it with GCC?? if i can, How??

    And do you know any good places to get a tutorial on DLL's

    The reason i want to know this is because i am starting off in OS Dev, and i want to be able to use DLL's, (to share functions & save memory) i already figured that a DLL was a collection of functions.

    Please help, ciao

  4. #4
    julie lexx... btq's Avatar
    Join Date
    Jun 2002
    Posts
    161
    MSDN has got some nice things to say about dlls...
    and also you might wanna check this out..this link was posted here some days ago..

    /btq
    ...viewlexx - julie lexx

  5. #5
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    Posts
    812
    >Can i compile DLL's that can be used on any OS using Visual C++ 6??

    Provided you are careful not use C/C++ specific features in your DLL interface, then you can get a Pascal program to use it.

    As far as I know, you are not going to be able to compile your DLL with VC++ and then run it on Linux.

    However, if you write your DLL using only standard C/C++ code, you stand a chance at compiling the source under Linux with GCC.

  6. #6
    i want wookie cookies the Wookie's Avatar
    Join Date
    Oct 2002
    Posts
    455
    does linux even use DLLs?

  7. #7
    Evil Member
    Join Date
    Jan 2002
    Posts
    638
    Linux uses a different type of dynamic loading usually, but you can get DLL functionality on Linux if you have a strong desire to do so.

  8. #8
    Registered User moi's Avatar
    Join Date
    Jul 2002
    Posts
    946
    Originally posted by the Wookie
    does linux even use DLLs?
    they use superiour constructs

    DLL is windoze specific

    observing some guidelines you can work with .DLLs and C <-> C++ <-> pascal and some other languages too
    hello, internet!

  9. #9
    i want wookie cookies the Wookie's Avatar
    Join Date
    Oct 2002
    Posts
    455
    visual basic

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linker errors in VC++ 2005
    By C+/- in forum C++ Programming
    Replies: 0
    Last Post: 05-18-2007, 07:42 AM
  2. DLL generated but related import library is missing?
    By George2 in forum C Programming
    Replies: 0
    Last Post: 08-18-2006, 12:13 AM
  3. Replies: 4
    Last Post: 07-06-2006, 02:53 AM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 10:33 AM
  5. Release MFC Programs & Dynamic MFC DLL :: MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 05-18-2002, 06:42 PM