Like Tree6Likes
  • 2 Post By deoren
  • 3 Post By grumpy
  • 1 Post By inu11byte

How to know if my exe makes use of DLLs?

This is a discussion on How to know if my exe makes use of DLLs? within the C++ Programming forums, part of the General Programming Boards category; Hi guys, Please help... I have program which I developed using Vis studio in C++. How can I find out ...

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    224

    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
    Location
    Liverpool UK
    Posts
    1,425
    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."

    Stroustrup:
    "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
    Posts
    63
    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:
    http://projects.whyaskwhy.org/

  4. #4
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,604
    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
    Posts
    6,290
    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 01:47 PM.
    stahta01, strokebow and msh like this.
    Right 98% of the time, and don't care about the other 3%.

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

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

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Makes me mad..
    By Warrax in forum A Brief History of Cprogramming.com
    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 Cprogramming.com
    Replies: 14
    Last Post: 12-06-2002, 05:34 PM
  5. !@#$ DLLs?
    By Citizen Bleys in forum C# Programming
    Replies: 2
    Last Post: 05-10-2002, 06:17 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21