Solved

How to get the path of any DLL file??

Posted on 1998-12-23
4
158 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 50 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

Industry Leaders: 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

Suggested Solutions

Title # Comments Views Activity
Validating VB6 Function 19 68
VBA filters 2 73
Child Form in front 4 58
VB6 calling COM DLL written in Visual Studio 2003 6 21
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

730 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