Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP Code to determine version of com DLL

Status
Not open for further replies.

Anddroid

Programmer
Mar 23, 2001
5
CA
Is it possible to write some ASP code to display the version of a VB DLL or list of VB DLL's that are registered on a web server?

I've written some VB DLL's, had them registered them on a remote web server, and now after some time has passed, I would like to know what versions are actully on that web server. I could have someone physically go to the server and using window's explorer, check each DLL that I'm interested in, but I would like to know if there is some ASP code that will do this for me.
 
there is no ASP code to do this, instead you would have to do what I did, write a VB ActiveX DLL, that you can use as the middleware between the ASP and the server, for example, I reference a DLL I wrote in my ASP, given a directory path, will return all the files (*.exe, *.dll, *.ocx) with information such as versions and such Karl Blessing aka kb244{fastHACK}
kblogo.jpg
 
How do you get DLL Version information using VB?
 
One thing you can do is to create public properties in all of your DLLs that return their version numbers. Then you can get that property from the DLL itself.

The dll would have something like this:

Code:
Public Property Get Version() as String
    Version = App.Version.major & App.Version.minor '(or something like that - I can't recall the exact syntax, but intellisense will show it to you!)
End Property
 
P.S. You might have to use a different propertyname than "Version" because that is most likely a reserved word!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top