Thread: How to know if my exe makes use of DLLs?

  1. #1
    Registered User
    Join Date
    Nov 2006

    Question How to know if my exe makes use of DLLs?

    Hi guys,

    Please help...

    I have program which I developed using Vis studio in C++. How can I find out what DLLs my program requires???

    Cheers :-)

  2. #2
    Registered User rogster001's Avatar
    Join Date
    Aug 2006
    Liverpool UK
    that makes no sense, how have you developed the program without it's required libraries? You could not have ran it at all.

    What sort of a program is it you have written? is it just a console application? ie opens in a 'DOS ' style window?

    Do you mean the default libraries just to support a basic project? If you start a console application for example your IDE should just link them into your build options for you.

    You will soon know if you try and run it and it says 'error cannot find suchandsucha DLL
    Thought for the day:
    "Are you sure your sanity chip is fully screwed in sir?" (Kryten)
    FLTK: "The most fun you can have with your clothes on."

    "If I had thought of it and had some marketing sense every computer and just about any gadget would have had a little 'C++ Inside' sticker on it'"

  3. #3
    Registered User deoren's Avatar
    Join Date
    Mar 2003
    Quote Originally Posted by strokebow View Post
    How can I find out what DLLs my program requires???
    Check out Dependency Walker; It's awesome.
    It is better to fail with honor than win by deceit
    - unknown

    My erratic tinkerings:

  4. #4
    Join Date
    Oct 2007
    Inside my computer
    Well, if we're simply talking about a program that uses the C++ standard library, then you would simply need to install the Visual C+++ runtime on the target machine. It will install everything necessary.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  5. #5
    Registered User
    Join Date
    Jun 2005
    Microsoft provide a program - free - called listDLLs which lists the DLLs in use by a running process. It means you need to run your program, and it will presumably list standard windows components as well as DLLs you need to distribute.

    Bear in mind that, if your code dynamically loads libraries, it can fool such programs.

    If your program needs Visual C++ runtime, it might be better to look at project/linker options to ensure the runtime is statically linked (so the DLLs are not needed to run it). It depends on how complex you want installation to other computers to be.
    Last edited by grumpy; 01-26-2012 at 02:47 PM.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.

  6. #6
    Registered User
    Join Date
    Nov 2006
    cheers grumpy and others for suggestions

  7. #7
    Registered User
    Join Date
    Dec 2011
    1. Run your program
    2. Open Command Prompt and type "tasklist /m"
    3. Look for your program in the list.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Makes me mad..
    By Warrax in forum A Brief History of
    Replies: 12
    Last Post: 05-01-2007, 07:49 AM
  2. What Makes A CPU Get Hot?
    By SMurf in forum Tech Board
    Replies: 12
    Last Post: 10-15-2006, 05:36 AM
  3. DLLs in c++
    By MisterT in forum C++ Programming
    Replies: 4
    Last Post: 08-05-2006, 04:18 PM
  4. This makes me SO mad!!
    By minesweeper in forum A Brief History of
    Replies: 14
    Last Post: 12-06-2002, 06:34 PM
  5. !@#$ DLLs?
    By Citizen Bleys in forum C# Programming
    Replies: 2
    Last Post: 05-10-2002, 06:17 PM