Solved

Detecting a missing DLL

Posted on 2002-03-21
5
156 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
ID: 6886646
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
ID: 6886649
BTW, it ships with VC6 as 'depends.exe'...
0
 
LVL 1

Author Comment

by:pentomino
ID: 6886762
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
ID: 6886801
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
ID: 6887147
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

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
bobThere java chalenge 45 92
mixString challenge 36 121
C++ BOOL WINAPI ReadFile fails on windows 10 when reading from USB cable 9 429
Detect file exist or not 3 156
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
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.

776 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