Solved

Detecting a missing DLL

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

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…
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.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

737 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