Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Obtaining DLL information from inside
Message
De
22/02/1999 13:28:50
 
 
À
22/02/1999 12:00:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00190002
Message ID:
00190049
Vues:
19
>>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.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform