?
Solved

How to get the path of any DLL file??

Posted on 1998-12-23
4
Medium Priority
?
160 Views
Last Modified: 2010-05-03
Hi experts,
  I would like to know how to get the path of the DLL file, given its file name.I would like to achive it in VB.
I will explain the problem in detail,
i have a text box, in which user enter a DLL file name.
And i have to dispaly its path in the computer if present.
How is it possible?
I tried using Registry, but Inprocserver32 key wont contain the path.
Please help me.
Waiting for your replies.
0
Comment
Question by:KnowledgeSeeker
[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
  • 2
4 Comments
 
LVL 2

Expert Comment

by:trillo
ID: 1452337
The only way is making a recursive search in the hard disk

Trillo
0
 
LVL 3

Accepted Solution

by:
vmano earned 100 total points
ID: 1452338
As per Trillo's comment, check out this MSDN article: Q185476. URL is:
http://support.microsoft.com/support/kb/articles/q185/4/76.asp?FR=0 

let me know if this helps
vmano

0
 
LVL 1

Expert Comment

by:dwalex
ID: 1452339
Surely the registered version of the DLL you're looking for is identified in the Registry, given that there are frequently multiple copies of any given DLL on a machine. That's what the Registry is for no? You'll likely have to make a few calls to the Registry to track the reference back to a path, but it HAS to be possible.
0
 
LVL 2

Expert Comment

by:trillo
ID: 1452340
dwalex....
sorry, but your comment is right and wrong at the same time.
Whay you're saying is right but only for ActiveX DLL's, because they have to be registered to work properly. But Dll's conaining functions are not in the system Registry (if you build a DLL in C++ for example, containing a function called "Add", who's purpose is adding two integers, you shouldn't register it, the only important thing is that the program calling the DLL, must know where to find it).
And, as Adittional information, only a very little percent of DLL's in the system are ActiveX.

Trillo
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

762 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