Solved

How to get the path of any DLL file??

Posted on 1998-12-23
4
154 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

861 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now