Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Name of executing DLL
Message
From
01/09/1999 12:02:26
 
 
To
01/09/1999 11:44:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00260223
Message ID:
00260233
Views:
20
>I have created a DLL that I need to get the version number from. The problem is, FullPath(Sys(16,0)) returns the name of the class library file (d:\myappdir\mylib.vct), and there is no version information associated with it. If I do AGETFILEVERSION(myarr,"mylib.dll") it works just fine. Of course everything works when you try it from the command window. TIA

One way to do this is to look in the registry for HKEY_CLASSES_ROOT\ProgID\CLSID, which will contain the GUID for the server. The registry key HKEY_CLASSES_ROOT\CLSID\GUID\InProcServer32 will contain the full path of the .DLL file.
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform