Solved

Detecting a missing DLL

Posted on 2002-03-21
5
157 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

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…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

839 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