You must Sign In to post a response.
  • Category: .NET

    What is difference between dll and exe?

    The forum thread has not been reviewed by Editors yet. Readers are advised to use their best judgement before accessing this thread.
    This thread will be reviewed shortly.
    If you think this thread contain inappropriate content, please report to webmaster.
    In .NET assembly can take form of dll or exe. What is the main difference between them.Its a interview question
  • #45401
    Dll cannot Run on its own
    Exe Can Run On its own

  • #46345
    exe is a executable file.
    dll is a Dynamic Link Library.
    exe runs on its own and the dll file is linked or referenced to the exe at run time.

  • #135720
    .Exe
    1.These are outbound file.
    2.Only one .exe file exists per application.
    3. .Exe cannot be shared with other applications.

    .dll
    1.These are inbund file .
    2.Many .dll files may exists in one application.
    3. .dll can be shared with other applications.

  • #137256
    .exe is an executable program
    .dll is a dynamic link library located at run time using PATH env variable


    exe runs on its own
    dll file is linked or referenced to the exe at run time.

  • #137269
    .exe is an executable program
    .dll is a dynamic link library located at run time using PATH env variable


    exe runs on its own
    dll file is linked or referenced to the exe at run time.

  • #140701
    "First we need to be clear that both "exe" and "dll" are fundamentally the same but the difference lies in how windows interacts with them. "

    When windows loads a dll, it runs the initialization code and then leaves it alone. Functions in the dll are called if they are explicitly referenced by an application. Another thing, when dll gets crashed it not only crashes itself but also the application as the dll runs in the memory of the parent application.

    When windows load an exe, the exe's initialization code is responsible for creating what is called as "message pump", nothing but a program loop which runs as long as the application is running. The message pump request messages from the operating system. Windows keep track of the application as a separate task. It allocates separate memory for both the exe and the application using that exe. The memory area in which each exe runs is called "Process Space".

  • #153561
    Exe and Dll

    ExE There is some Entry point ,Dll There is no entry point .
    Exe has main Entry point available
    Dll There no any entry point available

    DLL Can Occupy own memory space it self
    EXE Can allocate memory spaces in different places

    Dll Execution is very Fast compare to Exe

  • #285105
    EXE..
    1.Its a executable file
    2.There is only single main entry
    3.When a system launches new exe, a new process is created
    4.The entry thread is called in context of main thread of that process.

    DLL..
    1.Its a Dynamic Link Library
    2.There are many entry points.
    3.The system loads a DLL into the context of an existing thread

    For More Details..
    http://www.c-sharpcorner.com/Interviews/Answer/Answers.aspx?QuestionId=1431&MajorCategoryId=1&MinorCategoryId=1
    http://wiki.answers.com/Q/What_is_the_difference_between_an_EXE_and_a_DLL

    Regards
    Sridhar R
    Nothing is illegal, Until You Get Caught

  • #301961
    The following are the main differences between dll and exe files

    DLL

    1. It can be reused.
    2. It can be versioned.
    3. It is not self executable
    4. It doesn't have main function

    .EXE
    1. It cannot be reused
    2. It cannot be versioned.
    3. It is self executable.
    4. It will have main
    function.

    another main difference is dll cannot be run individully but exe files can run individully
    Regards
    N.RaviKiran


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.