473,385 Members | 1,582 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to find the DLL dependency of an EXE file with VC codes?

Hi. Do you guys know how can I find all the DLL file names
being used by an EXE within a visual c++ program? I know
there's a tool called Dependency Walker can do this but I need
the source codes or knowing how to do it.

I am using Visual C++ 6.0.

Thanks very much!!

Feb 16 '06 #1
2 2071
Or if anyone can give me a rough and high-level idea about how this can be
done, that would be also very helpful.

I have been looking for the solution in different directions: Win32 APIs,
EXE header format, and so on. But none of them looks like the right way.
Feb 16 '06 #2
"Cachaca" <Ca*****@discussions.microsoft.com> wrote in message
news:C1**********************************@microsof t.com...
Hi. Do you guys know how can I find all the DLL file names
being used by an EXE within a visual c++ program? I know
there's a tool called Dependency Walker can do this but I need
the source codes or knowing how to do it.


To do that statically, you might want to start by reading these two
(somewhat old) articles:

http://msdn.microsoft.com/msdnmag/issues/02/02/PE/

http://msdn.microsoft.com/msdnmag/issues/02/03/PE2/

The articles discuss of utility of the author, Matt Pietrek, called PEDUMP.
It dumps Win32 "portable executable" files.

I'd suggest that you look closely at the import address table (IAT) which is
where much of the import information is stored. The twist is that an
executables are linked to potentially many DLLs and they can have imports,
too.

To do that dynamically, check the docs for EnumProcessModules().

Regards,
Will
Feb 16 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Kyle Root | last post by:
I'm working on a little practice program, but I've become stuck and am now utterly confused :? I've created a jumble of python modules, in each one is a tuple that goes something like, deps =...
4
by: Henke | last post by:
I have this scenario. public class A { public int numbers; public class A() { }
9
by: Nak | last post by:
Hi there, I'm getting some strange warnings appearing while I'm compiling a couple of setup projects I have in a solution. I'm being informed of the following warnings, WARNING: Unable to...
0
by: Michael R. Pierotti | last post by:
Has anyone seen this error before when trying to make the install on a program. ------ Starting pre-build validation for project 'HafaSMPPInstall' ------ WARNING: Unable to find dependency...
3
by: DJTN | last post by:
I'm getting the following error when I try to compile my setup project in VS 2002. I have re-installed the .net framework 1.1 and it didnt solve the problem. WARNING: Unable to find dependency...
3
by: prabhu.desai | last post by:
I'm compiling a huge(900 files ) embedded application written in C . Over a period of time , the code has developed a lot of inter crossed dependenc. The current scenario is , i make a change to...
6
by: Rolf Welskes | last post by:
Hello, I want to partial cache by using a UserControl. Now I have a file dependency. In msdn I see it is not possible to do it the same way as in a page. The only information is to create a...
1
by: pallav | last post by:
I have two header files, circuit.h and latch.h that reference each other and are causing a cyclic dependency. latch.h file #include "circuit.h" typedef boost::shared_ptr<struct LatchLatchPtr;...
1
by: vincentt | last post by:
Hi, We code DLL's and so far it was done using VS6.0. We are planning to migrate the VS.NET 2005 and use the VS6 VC++ code which generated the DLL to VS 2005 VC++.NET. However we donot plan to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.