Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Obtaining DLL information from inside
Message
De
22/02/1999 14:03:27
 
 
À
22/02/1999 13:28:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00190002
Message ID:
00190067
Vues:
18
>>>I have a class that I compile into a DLL. From inside the class, I want a method that will return the verion number of the DLL that was set at build time. Getting the version number is easy using AGETFILEVERSION(). But, how do I get the name of the DLL?
>>
>>If you have the ProgID, you can spin through HKEY_CLASSES_ROOT\CLSID; the InProcServer32 registry entry's Default value, at the same level as the ProgID registry entry that matches your server, points to the .DLL that provides the service. If you find a LocalServer32 entry, that's a local, out-of-process server, and you should find the command line used to launch the associated automation server.
>
>I want a generic way. I won't know the prog Id.

If you don't know the ProgID, and don't know the name of the .DLL or .EXE used to implement the server, what piece of information will you have that will allow you to identify the server?
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform