Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Obtaining DLL information from inside
Message
From
22/02/1999 13:28:50
 
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00190002
Message ID:
00190049
Views:
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.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform