Reading .EXE dependencies

Posted on 2005-04-18
Last Modified: 2010-04-24
Is there a way to read the dependencies from an executable file?
Question by:SonicX_BlueBlur
    LVL 9

    Expert Comment

    Do you mean programmatically, or with a tool?

    Depends.exe (included with Visual Studio) will show all static dependencies (DLLs linked at build time).

    However, the executable may also have dynamic dependencies (e.g. DLLs loaded manually at runtime, COM servers instantiated through code, etc).
    There is no tool to discover these, but you may use something like Process Explorer ( to monitor the various modules loaded by the executable at runtime. Of course, it will only show modules actually loaded. So, if you do not exercise a certain code path that would result in the loading of an external module, it will not show up.


    Author Comment

    Programmatically, actually. I'm making an installer, and part of it is a script creator (as the installer is script-based). In my view, the creator of the program shouldn't have to deal with dependencies defined by the program itself, just the ones they define themselves.
    LVL 9

    Accepted Solution


    Author Comment

    Sorry about giving a C, but that was just too much documentation for me to go through, with everything else I need to do. I'll keep it in mind, though.

    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
    In Easy String Encryption Using CryptoAPI in C++ ( I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
    This video discusses moving either the default database or any database to a new volume.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now