Solved

Detecting a missing DLL

Posted on 2002-03-21
5
159 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

726 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