Solved

Detecting a missing DLL

Posted on 2002-03-21
5
154 Views
Last Modified: 2013-11-20
I am using VC++ 6.0. How can I determine if a required DLL is missing from with the app that
uses the DLL ?

TIA
0
Comment
Question by:pentomino
  • 3
5 Comments
 
LVL 86

Expert Comment

by:jkr
Comment Utility
Go to www.dependencywalker.com and get that tool. If a DLL is missing, it'll report it....
0
 
LVL 86

Expert Comment

by:jkr
Comment Utility
BTW, it ships with VC6 as 'depends.exe'...
0
 
LVL 1

Author Comment

by:pentomino
Comment Utility
I meant to ask how I can determine if it exists from WITHIN the application.
BTW I know the name of DLL.
0
 
LVL 86

Accepted Solution

by:
jkr earned 100 total points
Comment Utility
Oh, in this case, just call 'LoadLibrary()' - if it doesn't succeed, it is missing, it the call succeeds, call 'FreeLibrary()'...

0
 
LVL 3

Expert Comment

by:GGRUNDY
Comment Utility
You may also want to check out
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/vcconSpecifyingDLLsForDelayLoading.asp

so that your app can get a chance to do the LoadLibrary test before it crashes.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Windows Drag & Drop Location 2 85
move a line in eclipse 3 60
has77  challenge 9 67
sumHeights2  challenge 7 75
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

743 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

18 Experts available now in Live!

Get 1:1 Help Now